cpp inheritance private public

cpp inheritance private public - A<-B<-C If B inherits...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Multiple Inheritance A class inherits from 2 or more separate base classes class shape{ }; class graphic{ }; class figure: public shape, public graphic{
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: }; A<--B<--C If B inherits from A privately then class C cannot access public members of A ie. it turns the public members private...
View Full Document

This note was uploaded on 11/11/2009 for the course CSE 2341-H taught by Professor Markfontenot during the Spring '09 term at SMU.

Ask a homework question - tutors are online