What is difference between Abstract Class and Interface?
Answer Posted / tarunkumar
Abstract class is a class in which it will contain both the
abstract and non-abstract methods.The abstract class must
be inheritable by another class. In vb.net it will be
defined using mustinheritable keyword.
The syntax is :
Public MustInheritable Class classname
Interface is a class in which it will contain only the
abstract methods. The interface can be implemented or not
by the another class.The functions in interface will be
implemented by the another class which implements the
interface.
The syntax is :
Public Interface interfacename
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What would you do to remove microsoft visual basic name space?
What is a literal control?
How do you retrieve the customized properties of a .net application from xml .config file?
List the different types of assembly?
What are the advantages of migrating to vb.net?
What is the difference between Namespace and Assembly?
What is datatype conversion?
What is the feature anonymous type?
Name some of the features present in vb 2005?
Explain nested classes?
Explain the observations between vb.net and vc#.net?
What is static member?
Explain the difference between .dll extension and .exe extension files?
Explain about the ruby interface generator?
Why do we use byref keyword in vb.net?