answersLogoWhite

0

What are the advantages of inheritanceof c plus plus?

Updated: 8/18/2019
User Avatar

Wiki User

10y ago

Best Answer

By inheriting from existing classes, you can produce more specialised versions of those classes, without the need to rewrite the common generic code, thus reducing code duplication.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the advantages of inheritanceof c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Advantages of manipulator in c plus plus?

theriyadhu


What are the Advantages of c over c plus plus?

There are no advantages of C over C++ as such. Everything you can do in C you can also do in C++. However, by taking advantage of C++ object oriented programming, generic programming and template meta programming as well as C-style coding, you can produce more efficient machine code far more easily and more quickly than with C alone.


Advantages of C over C plus plus and java?

C can be faster than C++ programs, and definitely faster than Java, since Java is primarily interpreted. C is also somewhat less rigid in definitions as well, not as tightly structured as either C++ or Java can be.


Main advantage of 'c' against 'c plus plus ' langugae?

C does not have any major advantages over C++ because any C program can be compiled under C++ with relatively minor modification. However, the C compiler works a bit quicker than that of C++ since there is no need to cater for object-oriented programming in C.


What is b plus b plus b plus c plus c plus c plus c?

b+b+b+c+c+c+c =3b+4c


What is c plus c plus 2c plus c plus c equal?

c + c + 2c + c + c = 6c


Advantages of C plus plus over c?

Everything you can do in C you can do in C++, with relatively minor variations in syntax. You can also incorporate C-style code directly. However, the main advantage is that C++ incorporates object-oriented programming, which allows highly complex data structures to be constructed far more easily than with C alone.


B plus b plus b plus c plus c plus c plus c equals?

b + b + b + c + c + c + c = 3b + 4c


Symplify c plus c plus c plus c?

4c


What is c plus c plus c plus c plus c?

c + c + c + c + c = 5 * c.


Primary and secondary key in c and c plus plus?

There are no "primary and secondary keys" in c and c plus plus.


What is c plus C plus C answer in algebra?

3c