
09-12-2008, 01:53 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,445
Rep Power: 11
|
|
Originally Posted by ur_rek
|
please any one solve this data members-vehicle name,vehicle model name, vehicle price,service station name, methods: 1.constructor,display method to display vehicle name,vehicle price,vehicle model no,and service staion name .define another class named bike that extends the clss vehicle ,data member- discount rat, methods constructor,display() method to display bike name , bike model number, bike price, service station name, discount rate,3. discount() method to cumpute the discount .create an object for the class bike to test it
rekha
|
What you want to know? Please don't interact with others threads, if your question is not related.
|