Developer community
0 votes
asked by Expert (11.4k points) 14 22 29 | 44 views

1 Answer

0 votes
Inheritance allows us to extend the functionality of a base class. It is an "Is a" type of relationship rather than a "Uses" type of relationship (a dalmation IS A dog which IS A canine which IS A mammal - dalmations inherist from dog which inherits from canine which inherits from mammal). All child classes retain the properties and methods of their parent classes but may override them. When you want to inherit (use the functionality of) another class. Base Class
Employee. A Manager class could be derived from the Employee base class.
answered by Expert (11.4k points) 14 22 29

Related questions

0 votes
1 answer
asked by john Guru (27.1k points) 32 50 97 | 16 views
0 votes
1 answer
0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 16 views
0 votes
1 answer
0 votes
0 answers
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers


10.7k users

3,751 questions
4,046 answers
10,709 users