Home
C++
Bitset
Class
Console
Data Structure
Data Type
Deque
Development
File
Function
Generic
Language
List
Map Multimap
Overload
Pointer
Qt
Queue Stack
Set Multiset
STL Algorithms Binary search
STL Algorithms Heap
STL Algorithms Helper
STL Algorithms Iterator
STL Algorithms Merge
STL Algorithms Min Max
STL Algorithms Modifying sequence operations
STL Algorithms Non modifying sequence operations
STL Algorithms Sorting
STL Basics
String
Valarray
Vector
Inheritance « Class « C++
C++
Class
Inheritance
1.
Public inheritance
2.
Three level public inheriance
3.
Make field public during private inheritance
4.
Demonstrate inheriting a protected base class.
5.
A simple example of inheritance.
6.
Share member variables between sub class
7.
Virtual functions retain virtual nature when inherited.
8.
Inherit base as private
9.
call contructor from parent class
10.
Cascade constructor and destructor call
11.
Call parent constructor and pass in parameter
12.
Access control under inheritance