Total members 11893 |It is currently Mon Nov 04, 2024 11:04 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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!




Author:
Newbie
User avatar Posts: 3
Have thanks: 0 time

please we don;t solve full assignments , please post your progress and we will try to give you hints.

to know how to implements inheritance concept using java please read following topics :
java/what-is-inheritance-t573.html
java/inheritance-in-java-t3534.html

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

this is not an assignment!


Author:
Newbie
User avatar Posts: 3
Have thanks: 0 time

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 .

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

msi_333 wrote:
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


Author:
Newbie
User avatar Posts: 3
Have thanks: 0 time

sure , please post it here .. :) , to know how to implements inheritance concept using java please read following topics :
java/what-is-inheritance-t573.html
java/inheritance-in-java-t3534.html

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

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.


Author:
Post new topic Reply to topic  [ 7 posts ] 

  Related Posts  to : help me! inheritance
 What is Inheritance?!!     -  
 Inheritance C++ Example     -  
 Inheritance in c++     -  
 inheritance in c++     -  
 Need Help about Inheritance     -  
 @AttributeOverride with Inheritance     -  
 Multiple Inheritance     -  
 Inheritance in java     -  
 single table inheritance     -  
 Inheritance & polymorphism checker code     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com