subject

Write a class named as vehicle which has some attributes this class has three functions. i.e. fuelAmount ()
loadingCapacity()
applyBrakes()
enginePower()
Write a class named as Bus, Car and Truck which are inherited from class Vehicle. Also write the setter/getter, default and parameterized constructor in each class. Write a main which create object of derived class and call all inherited function of base class.
Note: Each class should have at least two attribute of base class

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Keep your choice of a major there is probably no single correct choice.
Answers: 1
question
Computers and Technology, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 24.06.2019 16:50
Ramp charts are generally created in wordlotusexcelpowerpoint
Answers: 1
You know the right answer?
Write a class named as vehicle which has some attributes this class has three functions. i.e. fuelA...
Questions
question
Social Studies, 09.03.2021 16:10
question
English, 09.03.2021 16:10
question
Mathematics, 09.03.2021 16:10
question
Mathematics, 09.03.2021 16:10
question
Health, 09.03.2021 16:10
Questions on the website: 13722363