Total members 10261 | Gratitudes |It is currently Wed May 23, 2012 8:21 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 7 posts ] 
Author Question
 Question subject: help me! inheritance
PostPosted: Fri Nov 25, 2011 8:34 pm 
Offline
Newbie
User avatar

Joined: Fri Nov 25, 2011 8:09 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 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


I tried to solve it but i feel that is not accurate!


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: help me! inheritance
PostPosted: Sat Nov 26, 2011 12:09 am 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
please we don;t solve full assignments , please post your progress and we will try to give you hints.

thanks .

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: help me! inheritance
PostPosted: Sat Nov 26, 2011 8:25 am 
Offline
Newbie
User avatar

Joined: Fri Nov 25, 2011 8:09 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 time
this is not an assignment!


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: help me! inheritance
PostPosted: Tue Nov 29, 2011 1:12 am 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 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 .

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: help me! inheritance
PostPosted: Tue Nov 29, 2011 7:02 am 
Offline
Newbie
User avatar

Joined: Fri Nov 25, 2011 8:09 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 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


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: help me! inheritance
PostPosted: Tue Nov 29, 2011 10:20 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
sure , please post it here .. :)

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: help me! inheritance
PostPosted: Sun Dec 04, 2011 4:03 pm 
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.


TOP
  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 7 posts ] 
Quick reply


  

 Similar topics
 @AttributeOverride with Inheritance
 single table inheritance
 Inheritance in java
 Need Help about Inheritance
 Inheritance in c++
 Multiple Inheritance
 What is Inheritance?!!

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 9 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team