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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain difference between machine config vs. Web config : Dot net architecture

490


What are .net mobile controls features? : Microsoft dot net mobile

500


Define cache coherency and how is it eliminated? : Dot net architecture

531


Explain the difference between l1 and l2 cache? : Dot net architecture

563


Difference between type constructor and instance constructor?

561






What is the difference between an event and a delegate?

535


Explain a .net mobile example with details? : Microsoft dot net mobile

482


What is IL code, CLR, CTS, GAC & GC?

604


Explain the difference between l1 and l2 cache? : .NET Architecture

569


What is new in the .net 2.0 class library?

704


Explain the process of gc?

557


What is the purpose of cache? : Dot net architecture

544


How to improve the cache performance? : .NET Architecture

564


What are the types of memory management? : Dot net architecture

498


Explain about metadata?

530