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 a static class?
How to connect crystal report in vb.net ?
what is interface and when it is used?
What are the difference between dispose(), close(), exit(), end()? When do we use them?
What do you mean by option strict on?
What are the advantages of migrating to vb.net?
Explain an assembly?
Explain how the .net framework performs automatic memory management.
Explain about Visual basic.NET culture?
Explain jagged array in vb.net?
Which control is an example of an object in vb net?
i am attending to US consulate i kept my projects on vb.net ,please help me what questions will be ask on vb.net in us consulate
How do you define a read only property in a class module?
What are all the differences between dispose and finalize()?
How to create a constant in vb.net?