Is this statement true or false?
class studentData : Private UserData {};
The word Private in front of the inherited class UserData means that all the members of the new class studentData will not be private.
I think it is false but I am not entirely sure.Easy 10 points for c++ true/false question?
false..
if it has it infront it means it is private...Easy 10 points for c++ true/false question?
that is FALSE. that has nothing to do with it.
* Private inheritance models the ';is implemented in terms of a'; relationship, rather than the is-a relationship that is modeled by public inheritance.
* Private inheritance results in all public functions of a class being inherited as private functions
* Private inheritance should be used sparingly, but can be necessary when you need to override a virtual function
Private inheritance does not model an is-a relationship in the same way that public inheritance does. Instead, private inheritance refers to the idea of being ';implemented in terms of a';. The key difference is that whereas public inheritence provides a common interface between two classes, private inheritance does not--rather, it makes all of the public functions of the parent class private in the child class. This means that they can be used in order to implement the child class without being accessible to the outside world.
you are not meant to ask homework questions in this category, but anyways, answer = false
False
It's totally false!
False.
False.
Gotta be false
true? the universe is one with Lord OZZY
FALSE!!!!!!!!!!!!!!!!!!!
False x
it is false you were right
false.
yep its false
false
false
false
its false
false
Do your own homework
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment