what are the different between abstraction or inheritance
Answers
Answered by
0
HELLO ☺☺
HERE IS YOUR ANSWER ⬇️⬇️⬇️
___________________________
INHERITANCE IS USED TO INHERIT ALL THE METHOD AND FIELDS OF PARENT CLASS.
BUT __________________________
ABSTRACT CLASS IS A SPECIAL TYPE OF CLASS WHICH CANNOT BE INSTANTIATED AND ACTS AS A BASE CLASS FOR OTHER CLASSES. ABSTRACT CLASS MEMBERS MARKED AS ABSTRACT MUST BE IMPLEMENTED BY DERIVED CLASSES .
____________________________
HOPE IT WILL HELP YOU ☺☺
HERE IS YOUR ANSWER ⬇️⬇️⬇️
___________________________
INHERITANCE IS USED TO INHERIT ALL THE METHOD AND FIELDS OF PARENT CLASS.
BUT __________________________
ABSTRACT CLASS IS A SPECIAL TYPE OF CLASS WHICH CANNOT BE INSTANTIATED AND ACTS AS A BASE CLASS FOR OTHER CLASSES. ABSTRACT CLASS MEMBERS MARKED AS ABSTRACT MUST BE IMPLEMENTED BY DERIVED CLASSES .
____________________________
HOPE IT WILL HELP YOU ☺☺
Similar questions