adspace


give me the defination of inheritance?

Answer Posted / vishal

Inheritance allows a class to inherit attributes and
behaviors (methods) of another class.This allows creation
of brand new classes by abstracting out common attributes
and behavior.

The idea of inheritance is to go from general to specific
by factoring out commonality.
1.Code Reuse
2.Better overall design by organizing classes

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

sir please send me bpcl previous question papers

2479


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

3475