Private inheritance

The following code shows how we derive a class from other class.

class Base

class Derived: public Base

The Derived class is derived from Base with public level of inheritance. If you omit the public word while declaration such as 
class Derived : Base
the level of inheritance will be private.

The private inheritance is only supported in unmanaged C++. Its not supported in managed C++. if you declare the compiler will give error.


Popular posts from this blog

How to flash CWM Recovery to Samsung Galaxy SL( GT-I9003) using Odin

Exception handling with RestTemplate

Warning : Hardcoded string "str", should use @string resource