0
6.1kviews
In a garden, trees are maintained. A tree has following set of attributes
written 8.1 years ago by | modified 8.1 years ago by |
Tree code, heights, base and amount spent on the tree so far.
(i) Define Tree class, its constructor, display() and update() that updates tree information.
(ii) Define derive class Mango tree that has additional yield attribute.
(iii) Define Garden class and display information of a tree and a Mango Tree.
Mumbai University > Computer Engineering > SEM-3 > OOPM
Marks: 10M
Year: DEC-15
ADD COMMENT
EDIT
1 Answer