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


Please Help Members By Posting Answers For Below Questions

What is the feature which is common to all .net languages?

467


What is multiple form in vb?

455


What is misl code?

566


What is an application domain? how they get created?

583


Tell me how many .net languages can a single .net dll contain?

523






What is deep copy?

559


my project run very wel in my sytem yhen i am deploying my project on client machine ,after deployment i run my project then it show " can no find server name " what i do .

1557


What is jagged array in vb.net?

635


What is portable executable?

584


Explain the use of option explicit?

594


What are the advantages of an assembly?

600


What is code access security?

684


What is econo-jit?

612


Name some of the features of C# which are not present in VB.NET?

550


How does vb.net achieve polymorphism?

541