QuesHub > inherit > private > class > ASK DETAIL

Can a private class be inherited?

Sophia Foster | 2023-06-09 06:42:35 | page views:1197
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Oliver Wilson

Works at the International Criminal Court, Lives in The Hague, Netherlands.
A subclass does not inherit the private members of its parent class. However, if the superclass has public or protected methods for accessing its private fields, these can also be used by the subclass.
2023-06-11 06:42:35

Ava Roberts

QuesHub.com delivers expert answers and knowledge to you.
A subclass does not inherit the private members of its parent class. However, if the superclass has public or protected methods for accessing its private fields, these can also be used by the subclass.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4