answersLogoWhite

0

Inheritance in C++ and in other Object Oriented languages is the creation of a class that incorporates a different class. The child (or derived) class "inherits" all of the elements (attributes and methods) of the parent (or base) class. Depending on the design of the base class, the derived class can use methods and attributes of the base class as if they were its own. Typically, however, attributes of the base class are private to the base class and inaccessible to the derived class so as to maintain class hierarchy and data encapsulation.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What are the concepts of object oriented programming in c plus plus?

The concepts of OOP in C++ are the same as for OOP in any other programming language: abstraction, encapsulation, inheritance and polymorphism.


What is an inheritance Explain different types of inheritance in c?

C is not an object oriented language and therefore has no native support for inheritance.


What are the main features of OOP in c plus plus?

The main features of OOP are the same regardless of the language. They are: encapsulation; data hiding; inheritance; and polymorphism.


Does c plus plus supports hierarchical inheritance?

Yes.


Why is multiple inheritance not possible in C?

C is not object-oriented -- you can't even use single inheritance let alone multiple inheritance.


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.


What are the interpreter in c plus plus?

C++ is a compiled language, not an interpreted language.


In computer language C plus plus is related to?

C++ is related to C, the language from which it is derived.


Is c plus plus a complied or interpreted language?

C++ is generally a compiled language.


What is meant by println in c plus plus?

println is not a C++ keyword.


Why C language is middile language?

If you meant 'middle', then it is a mistake; C is a high-level language.


Is C plus plus a high level language?

Yes, C++ is a high-level language.