What are 3 types of inheritance
Does members of base class which are public remain public in derived class Does protected members of base class remain protected in derived class Does private members of base class be hidden in derived class
Yes
What is default inheritance
Private
Why we use private inheritance
We use private inheritance when we want to reuse code of some class.
Is set a kind of collection
No
What is difference between collection and set
Collection can have repetition of Elements but in set there is always unique elements.