1
Answer

Can you help me with a few programs.

Shraddha Bhat

Shraddha Bhat

11y
1.1k
1
1)Write a program to define a class vehicle and a class engine. Let the vehicle class contain engine. The
engine should be started at the source and stopped after reaching the destination .Let the speed and the
distance be read. The program should throw an exception when the vehicle tries to travel beyond
destination.Develop the application in C#.


Answers (1)