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



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


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




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.



Views: 11550


Replies to This Discussion

guys why not focusing on diamond shape filling

n cars k  b yehi parts hutya hain wheel door n engine enko car se kio ni relate kr rei

agree with u Sis Khadija ...

yahan passenger ka bus n car se aggregate relationship hai... unfilled diamond aye ga .......

and as sis khadija said .... cars k sath bhi wheel door aur engine ko relate karaingy ....

hint mai ye nhi kaha k ye ONLY bus k parts hain....

driver ka ONLY likha hai ....

App zara Guidelines perhain us main hint di hy.. is senerio main Door, Wheel aur Engine ko sirf bus sy relate kerna hy aur Driver ko sirf Car sy

sirf kaha kaha hai.... app bhi aik baar dekh lain sahi se..... driver k liye srf kaha gaya hai

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

Parts of Bus and Driver is Only related to car for this scenario

is main agar only nahi kaha to "bus and car" b nahi kaha...!


apko jo sahi lagta wo karain .... mujhy jo sahi lagta wo karti hon :D

Alllah kare dono tarah se sahi ho

you are right brother...iss sentence se saaf zahir he k "Wheel, Door and Engine are parts of bus(full stop)" "and" used to convey another sentence "driver is only related to car." i think isse kisi tarha se bhi "bus and car" k snerio me nahi liyaa ja sakta....


salam waqar bhai mjy mail krain ye solution

Sir ,
I think kay paasenger agression hai iss liyayy agression ka sign aye ga jo passenger ko bus aur car sey relalate karay ga


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

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