![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jan 2005
Location: Sarawak,MAlaysia
Posts: 1
Rep Power: 0
![]() |
How to create program c++?
How to create a base class called MammalClass which each mammal has an age (private data member is Age) and a weight. Also the code for constructors that can instantiate mammals with age 0, a public member function which can set the age of the mammal.
Also include a function called Sound() which outputs "Mammal Sound", Sleep() which outputs "Mammal is sleeping", Eat() which outputs "Mammal is hungry". How to create this program using c++? Thanks a lot for ur all attention..... ![]() |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|