Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Define a base class called animal with following members:
harmandeep singh
Jan 28 2014 10:35 AM
1.4k
Reply
Define a base class called animal with following members:
a. string type data member to store the name of the animal
b . integer member to store the age of animal in years
c. method to display the age and name of the animal
Derive to classes named Cat and Dog from animal class then write a driver program to create Cat and Dog objects with suitable values. Display the contents of objects by calling the display method on the derived objects
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
FTP UPLOAD
Lookup constants based on object names