Consider a class hierarchy involving motor vehicles. At the top of the hierarchy, class Motor_vehicle represents the most basic and general type of vehicles. Cars, Trucks, and Motorcycles are three types of vehicles that are extensions and specializations of the base class. Sport_Cars are included in the class hierarchy as a subclass of Cars.
Design the UML class diagram of all these classes. Include all attributes you find relevant for the classes, such as horse power, maximum speed, passenger capacity, load capacity, and weight. Include also all relevant methods.
Implement these classes and write test program to test your classes
I tried to solve it but i feel that is not accurate!
Anyway , i think you can use eclipse to draw the UML of your package and in this UML you will have to define the relationships between the class , i remember that eclipse generate the code automatically for the design GUI .
_________________ Please recommend / share my post if you found it helpful.
Anyway , i think you can use eclipse to draw the UML of your package and in this UML you will have to define the relationships between the class , i remember that eclipse generate the code automatically for the design GUI .
Yes I know all of that . I need help in coding
anyway I'll send U my solution and please look at it
Consider a class hierarchy involving motor vehicles. At the top of the hierarchy, class Motor_vehicle represents the most basic and general type of vehicles. Cars, Trucks, and Motorcycles are three types of vehicles that are extensions and specializations of the base class. Sport_Cars are included in the class hierarchy as a subclass of Cars.
Design the UML class diagram of all these classes. Include all attributes you find relevant for the classes, such as horse power, maximum speed, passenger capacity, load capacity, and weight. Include also all relevant methods.
Implement these classes and write test program to test your classes.