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 is the size of .net object?
What is the purpose of objects present in asp.net?
Explain an assembly and its use?
Which dll is used for microsoft .net run time?
What are the parts of the visual basic control?
Is vb net a scripting language?
Explain the use of new keyword?
Explain about the performance of visual basic?
What is the significance of delegates. Where should they be used?
Describe about visual basic.net?
Which classes a dll can contain?
Explain the difference between int and int32?
What is strong name in .net assembly?
What is the difference between vb 6 and vb.net?
What is the source code for display the picture in button click event?