1
Reply

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.

Naveen Bisht

Naveen Bisht

Feb 19, 2017
414
0

    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.

    Nirav Mehta
    November 21, 2017
    0