What are abstract class.


=> We can not create object of a abstract class.

=> Abstract class is designed to act as a base class ( to be inherited by other class )

=> Abstract classes are similar to interfaces. After declaring an abstract class, It can not be instantiated on it's own it must be inherited.

=> In VB.Net abstract classes are created using "MustInherit" keword. In C# we have "Abstract" key word.

=> Abstract classes can have implementation or pure abstract methods which should be implemented in the child class.

Share

& Comment

0 comments:

Post a Comment

 

Copyright © 2019 HART™ is a registered trademark.