J
Jordi
I was wondering, in C++ the syntax for inheritance is basically this:
class Descendant : public Parent {
....
};
Can someone tell me what would happen when I would replace 'public' by
'private' or 'protected'? I've looked through some tutorials on
inheritance, but the ones I found are mostly concerned with covering
the basic idea and simply skip over this and take it for granted, so
I'm hoping one of you can tell me.
class Descendant : public Parent {
....
};
Can someone tell me what would happen when I would replace 'public' by
'private' or 'protected'? I've looked through some tutorials on
inheritance, but the ones I found are mostly concerned with covering
the basic idea and simply skip over this and take it for granted, so
I'm hoping one of you can tell me.