Computer Science, asked by AkshayPolo2598, 1 year ago

15.Which propertry of inheritance cannot be inheitate?

Answers

Answered by mishti53
0

The car (subclass) inherits all of the vehicle's properties. The inheritance mechanism is very useful in code reuse. The following are some limitations of Java class inheritance: A subclass cannot inherit private members of its superclass. Constructor and initializer blocks cannot be inherited by a subclass.

Similar questions