Class inheritance examples
	Class A has an integer member called index
	and A has a function doIncrement().
       	
	
	Class B inherits from A, and b
	is an instance of class B.
	
	
	Then we may refer to the member index of the object
	b, and call the function doIncrement()
	of b.
- 
C++
inheritance.cc - 
Perl
inheritance.pl