What is inheritance, C/C++ Programming

Assignment Help:

What is inheritance?

Class, the vehicle, which is used to execute object-oriented concepts in C++, has given a new dimension to this idea of reusability. Many vendors now offer libraries of classes. A class library having of data and methods to operate on that data, encapsulated in a class. The source code of these libraries require not be available to modify them. The new dimension of OOP uses a method called inheritance to modify a class to suit one's requirements.  Inheritance means deriving new classes from the old ones. The old class is called the base class or parent class or super class and the class which is derived from this base class is known as derived class or child class or sub class. Deriving a new class from an existing one, permits redefining a member function of the base class and also adding new members to the derived class and this is possible without having the source of the course explanation also.  In other words, a derived class not only inherits all properties of the base class but also has some refinements of its own. The base class remains unchanged in the process. In other words, the derived class "is a "type of base class, but with more details added. For this reason, the relationship among a derived class and its base class is called an "is-a" relationship.

 


Related Discussions:- What is inheritance

Statistical and Numerical methods using C++–, An experiment succeeds twice ...

An experiment succeeds twice as often as it fails. Find the chance that in the next six trials there will be at least four successes.

Board Coloring , In this problem you are given a board in which some of the...

In this problem you are given a board in which some of the elements are placed as shown in diagram below. Each element represents a color. Fill the other elements in the board, suc

Explain the command line parameters, Explain the Command Line Parameters? ...

Explain the Command Line Parameters? The Command line arguments are parameters supplied to a program from the operating system. These arguments are parameters accepted to main

Super ascii, program to convert string from super ascii string with minimum...

program to convert string from super ascii string with minimum cost

Electrical eng, calculate the total resisitance of a series circuit?

calculate the total resisitance of a series circuit?

Prime, Prepare a program to obtain prime factors of any integer number usin...

Prepare a program to obtain prime factors of any integer number using functions

C, find area uder the curve y=f(x) between x=a and x=b

find area uder the curve y=f(x) between x=a and x=b

Roman code python help , In general, Roman numerals can be converted mathem...

In general, Roman numerals can be converted mathematically by simply assigning a numerical value to each letter, according to the chart below, and calculating a total: M=1000 | D=5

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd