adspace


Where would you use Abstract class and Interface?

Answer Posted / mayank bhatnagar

Interface includes just the definition of methods whereas
Abstract Classes are just like classes and hold all
functionality of classes except certain features.
The only difference between Abstarct Classes and Interfaces
is the use.Abstract Classes were introduced becoz of
diamond problem in C,C++.You can only inherit these classes
but cannot instantiate(i.e. no object of these classes can
be created, there can be one or more methods abstact in
such classes).
Interfaces are public and can be used/inherited by multiple
classes which was not before possible.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between datatable and dataset?

1420


How to retrieve images in sql server database through vb.net?

1043


Explain how can we remove handlers at run time?

1076


What are the features of c# which are not present in vb.net?

1185


Explain an assembly?

1057


What is option strict?

1214


How to store images in sql server database through vb.net?

1024


What is early binding?

1016


How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?

1106


What is the use of assembly?

1081


How to send xml file on server using http protocol?

1076


Explain the difference between system.string and system.stringbuilder classes?

1082