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
Name and explain some of the exclusive features which are present in vb?
What are the advantages of vb.net and c#?
What is the class that allows an element to be accessed using unique key?
Compare c# and visual basic.net?
What is the size of .net object?
What is a static variable?
What is strong name in .net assembly?
What is enumerator?
What are all the differences between dispose and finalize()?
Explain the difference between c# and vb.net?
What is non_deterministic finalization?
What is the use of assembly?
Explain option strict?
Can you please explain the difference between dataset and datareader?
Can you please explain the difference between value and reference types?