answersLogoWhite

0

When you derive one class from another, the derived class inherits the sum of all the public and protected members exposed by the class it derives from. The underlying class is known as a base class and in the class hierarchy is an ancestor of the derived class. It is not necessary for the base class to know any of the details regarding its derivatives, as prudent use of virtual methods ensures the derived class acts correctly even when calling methods in the base class.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Who developed visual c plus plus?

Microsoft developed Visual C++.


What is the brief history of visual c plus plus?

The complete history of Visual C++ can be found in the "Visual C++" article in Wikipedia.


Is Visual C or Visual C plus plus platform independent?

No, M$ Windoze only.


Is microsoft visual c plus plus the same as visual c plus plus?

Yes. Microsoft Visual C++ is the correct name, but it is often abbreviated to MSVC++ or just VC++. They are all the same.


Does c plus plus supports hierarchical inheritance?

Yes.


Can you make programs of C in visual c plus plus?

Yes.


How ploymorphism and inheritance is different from that in Java and c plus plus?

C++ allows multiple inheritance while Java does not. In my opinion, multiple inheritance is not useful because it can get very confusing very quick. For polymorphism, C++ does early binding by default, while Java does late binding by default. Late binding is more useful than early binding.


Is visual studio c plus plus 2010 free?

No. Visual C++ Express is free, but Visual Studio C++ must be bought. The Express edition is a subset of the Studio release.


How can you make a triangle in Visual C plus plus 2010?

Nevermind, I did it.


Write a c plus plus programme to illustrate single inheritance?

struct A {}; // base class struct B : A {} // derived class (single inheritance).


How can a constructor be invoked at the time of inheritance in C Plus Plus?

It cannot. Inheritance is a compile-time operation. Constructors are invoked at runtime at the point of instantiation.


Visual c plus plus 6.0 free installer?

Visual C++ 6.0 is more than 16 years old. It is no longer available to buy and it was never available for free. The current version is Visual C++ 2013.