Naveen Bisht
Can an abstract class have constructor? if yes then we know we can't instantiate the abstract class so how we can call constructor and how we can use it.
By Naveen Bisht in .NET on Feb 19 2017
  • kuldeep patil
    Jan, 2019 31

    Abstract class can be inherited by other classes. and when we create instance of child class then we can call base class constructor.

    • 1
  • Nirav Mehta
    Nov, 2017 21

    Yes, we can have constructor of abstract class. When you create instance of a class that is derived from the abstract class, the parent abstract constructor is automatically called.

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS