Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment No. 01
Semester: Fall  2015
Object Oriented Programming – CS304

 

Total Marks: 20

 

Due Date: 23 Nov, 2015

 

Objectives:

To get a hands on experience in creating Object Model (Class Diagram) of real world problems

Instructions:

Please read the following instructions carefully before submitting assignment:

It should be clear that your assignment will not get any credit if:

 

  • The assignment is submitted after due date.
  • The assignment is submitted via email.
  • The assignment is copied from Internet or from any other student.
  • The submitted assignment does not open or file is corrupt.
  • It is in some format other than .doc (MS Word Document).

 

Note: All types of plagiarism are strictly prohibited.

 

For any query about the assignment, contact at CS304@vu.edu.pk

 

 

 

Case Study

KKJ is a transport company providing its services by means of different vehicles throughout the country. The company currently owns many luxury buses for transportation of passengers among various cities. However company has recently used the shuttle service as well comprising of many cars. For this purpose new staff (car drivers) was hired. A car can be driven by any of the available car drivers.

Objects present in the case study:

  1. Driver
  2. Car
  3. Bus
  4. Vehicle
  5. Passenger
  6. Wheel
  7. Door
  8. Engine

 

Problem Statement:

You have to draw an Object Model (class diagram) for the given case study.

Object Model must clearly show the relationship between objects.

Object state and behavior is not required to be mentioned at this point.

Hint: Wheel, Door and Engine are parts of bus and driver is only related to car for this scenario.

BEST OF LUCK

 

Views: 11572

Attachments:

Replies to This Discussion

Wheel, Door and Engine are parts of bus and driver is only related to car for this scenario.
read it

Yeah u ryt... wheel Door and Engine related to car but wheel Door and Engine are also part of car ... i mean properties... u mention wheel door and engine in squre like Object ..these are not objects

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

Idea Class Diagram cas304 By + Memory Leak 

CS304 

Attachments:

thanks for this

vehicle k sath car & bus ka " IS-A" ka relation hai .....

car is a vehicle.... bus is a vehicle....

unfilled diamond ka symbol ni ayega..... uska matlb hai vehicle contains car & bus.....

jab k vehicle contain tou nhi karti......

yahan arrow ayegaa.... car or bus se vehicle ki taraf point kary ga

Ye sari class ghalat hain

mery khayal mein bus ky parts hain yani attributes hain engine, wheel and door.

or

Driver one way association hai with car.

Comment plz if i am wrong.

Secondly ap ny sahi kaha vehicle abstract class hai or bus and car are concrete class. so i think arrow hi ayega

you are right driver is only related to car and wheel,door and engine are part of bus

You are absolutely right.... 

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service