Computer Science, asked by paulp2007dob, 8 months ago

advantages of inheritance​

Answers

Answered by Sakshi0555
2

Answer:

The main advantages of inheritance are code reusability and readability. When child class inherits the properties and functionality of parent class, we need not to write the same code again in child class. This makes it easier to reuse the code, makes us write the less code and the code becomes much more readable.

Answered by Anonymous
2

THE MAIN ADVANTAGES OF INHERITANCE ARE CODE REUSABILITY AND READABILITY. WHEN CHILD CLASS INHERITS THE PROPERTIES AND FUNCTIONALITY OF PARENT CLASS, WE NEED NOT TO WRITE THE SAME CODE AGAIN IN CHILD CLASS. THIS MAKES IT EASIER TO REUSE THE CODE, MAKES US WRITE THE LESS CODE AND THE CODE BECOMES MUCH MORE READABLE.

PLEASE MARK ME AS BRAINLIST.......

Similar questions