What is the difference between abstract class and
Interface? Give an example how will u write an abstract
class using .NET Framework

Answers were Sorted based on User's Feedback



What is the difference between abstract class and Interface? Give an example how will u write an a..

Answer / susant

difference between an interface and abstract class?
1.In Interface all methods must be abstract,
2.In the abstract class some methods can be concrete.
3.In the interface no accessibility modifiers are allowed,
which is ok in abstract classes.
4.In interface all the members are by-default public

Is This Answer Correct ?    9 Yes 0 No

What is the difference between abstract class and Interface? Give an example how will u write an a..

Answer / brahmareddy

1.In Interface all methods must be abstract,
2.In the abstract class some methods can be concrete

Is This Answer Correct ?    3 Yes 0 No

What is the difference between abstract class and Interface? Give an example how will u write an a..

Answer / ravi

1. you can inherit a abstract class but only one
but you can implement more than one interface.
2. you can't initiate a n instance of abstract class
3. there may be concrete method in abstract class but all
the method in interface is virtual only , no mrthod
definition can be given in interface.

Is This Answer Correct ?    4 Yes 3 No

What is the difference between abstract class and Interface? Give an example how will u write an a..

Answer / santosh

when we declare class with abstract then the class
cannot cannot be extended.

Is This Answer Correct ?    2 Yes 10 No

Post New Answer

More Dot Net AllOther Interview Questions

Explain .net mobile selectionlist control? : Microsoft dot net mobile

0 Answers  


what are login controls?

0 Answers   Six Sigma,


Is .net easier than java?

0 Answers  


Explain pipelining? : .NET Architecture

0 Answers  


Explain Intermediate Language?

0 Answers   MaxSolPro,






what to choose among testing, .net , and java for a B-Tech (ECE) fresher.

1 Answers  


What is the use of web.config?

0 Answers  


how would you manage data if u were not to use sessions or cookies ?

2 Answers   Ness Technologies,


Explain hard disk and what is its purpose? : .NET Architecture

0 Answers  


how to delete the record using data reader

0 Answers   PCS,


What is the difference between metadata and menifest ?

0 Answers  


7. Oop-Diff B/w Interfacse and abstract class.

3 Answers   PCS,


Categories