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
Explain about garbage collection?
What is writeline in vb.net?
Explain global assembly cache (gac)?
What is a literal control?
Tell me how many .net languages can a single .net dll contain?
What is the role of new keyword?
what is the advantage of option strict on?
Explain about the feature anonymous type?
Explain the difference between int and int32?
How can we store decimal data in .net?
What is econo-jit?
Which is the base class for all the classes in .net framework?
Can you please explain the difference between value and reference types?
How many ways the function can return values?
Can you please explain the difference between int and int32?