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
Can you please explain the difference between c# and vb.net?
What is the difference between convert.tostring and i.tostring method?
Explain code security?
What do you understand by vb.net?
What is sorting in vb?
What is internal keyword in .net framework?
what is common type system?
What is the advantage of using system.text.stringbuilder over system.string?
Explain the differences between vb.net and c#, related to oops concepts?
Explain the use of serialization and deserialization?
What is the differences between dataset.clone and dataset.copy?
What are the differences between server-side and client-side code?
What is strong name in .net assembly?
Which is the tool which can convert visual basic old version to .net compatibility version?
Explain the services provided by common language infrastructure.