TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
harmandeep singh
1.3k
131
13.8k
Define a base class called animal with following members:
Jan 28 2014 10:35 AM
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
Reply
Answers (
1
)
FTP UPLOAD
Lookup constants based on object names