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

What other than biginteger has been introduced in system.numerics namespace?

0 Answers  


4. Wcf- what Asych and Sych call and how that works

0 Answers   PCS,


how to make and display a form without title bar?

1 Answers   Six Sigma,


Explain about metadata?

0 Answers  


IS IT Possible to inherit the AJAX page from child class which(child) is inherit from page class.Because i should apply some security in child class

0 Answers   IBM,






What is the use of web.config?

0 Answers  


how to change row background color in gridview

0 Answers  


What is the main Difference Between .Net 2003 and .Net 2005.and also Asp1.1,Asp2.0 and Asp3.0

4 Answers   Satyam, TCS,


Define cache coherency? : Dot net architecture

0 Answers  


Which software is used for .net programming?

0 Answers  


Explain cache? : Dot net architecture

0 Answers  


Hi, this is satish, i have more than 2 years of exp. on Microsoft .Net Technologies like C#, ASP.Net, VB.Net. But i am willing to change my platform into Testing tool. give me best suggestion for me.

2 Answers  


Categories