3
answers
2
watching
255
views
28 Jun 2022
PS: Please upload the output and say the logic behind it. Thank you!
1. Create a class Vehicle.
a. The class should have two fields:
i. no_of_seats and no_of_wheels.
b. Create two objects
i. Motorcycle and Car for this class.
c. Your output should show the descriptions for Car and Motorcycle
PS: Please upload the output and say the logic behind it. Thank you!
1. Create a class Vehicle.
a. The class should have two fields:
i. no_of_seats and no_of_wheels.
b. Create two objects
i. Motorcycle and Car for this class.
c. Your output should show the descriptions for Car and Motorcycle
Read by 2 people
depatienceLv1
7 Nov 2023
Read by 7 people
Read by 8 people
learn4lifeLv10
28 Jun 2022
Already have an account? Log in