answersLogoWhite

0


Best Answer

Inheritance has many merits, why it was implemented in the first place, it allows the reuse of code for similar classes, and it does an excellence job of organizing class relations. One "demerit" one might argue would be the fact that poorly written parent classes could be easily hacked into, thus gaining access to the parent class's internal methods simply by extending it.

The issues in the parent class would be passed on to the children. If the memory management or Thread management in the parent class is very poor, then the child class would inherit these features and its performance would be affected and would remain bad.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

1mo ago

Merits of inheritance include the preservation of family wealth, passing down of values and traditions, and potential financial security for descendants. However, demerits can include inequality among heirs, potential conflicts over assets, and perpetuation of wealth disparities.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

A merit is a quality of being good. Demerit is a word used to describe a feature or fact about something.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Merits and demerits of inheritance
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Explain the merits and demerits of advertising as an aid to trade?

what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement?


Merits and demerits of hotels?

hotel merits and demerits


What are the Merits and Demerits of plastic?

merits and demerits of plastics


Merits and demerits of LIBERALIsation?

Merits and demerits of liberalization is demerits of liberalisation. This is well known.


Merits and demerits of friction in cricket?

criket merits and demerits


What are the merits and demerits of fashion shows?

merits and demerits of fasion


Merits and demerits of co-marketing?

Merits and Demerits of media?


What are the merits and demerits of an economic system?

What are the merits and demerits of an economic system?


What are the merits and demerits of privatization of VSNL?

merits and demerits of privatization of VSNL


What are the merits and demerits of business administration?

merits and demerits of wages and salary administration


What are the Merits and Demerits of Tally over Oracle Application?

what are the merits and demerits of tally?


What are the merits and demerits of index numbers in statistics?

merits and demerits of index number