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

What is the purpose of Treeview control?

549


how to create applications by using Visual Studio 2012?

571


data types used in validation control

1738


What is an asssembly qualified name? Is it a filename? How is it different?

505


Does .NET runtime offer Deterministic Destruction or not?

594






Explain .net mobile automatic paging? : Microsoft dot net mobile

479


6. Wcf- what is SOA

1857


Explain different pipelining hazards and how are they eliminated? : Dot net architecture

491


Describe the Managed Execution Process in .NET?

529


What is .net mobile utility controls. Explain with an example? : Microsoft dot net mobile

459


Explain the use of virtual, sealed, override, and abstract.

558


Can I create my own metadata attributes?

526


what are the events for a form?

1597


How can we integrate atlas with web services?

519


Explain about common language infrastructure?

559