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. 02 SEMESTER Fall 2016 CS304- Object Oriented Programming Total Marks: 20 Due Date: 01 /12/2016

Assignment No. 02
SEMESTER Fall 2016
CS304- Object Oriented Programming Total Marks: 20
Due Date: 01 /12/2016

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 .cpp.

1) Note: You are supposed to submit your assignment in .cpp format. Any other formats like scan images, PDF, zip, doc, rar and bmp etc will not be accepted. All types of plagiarism are strictly prohibited.

For any query about the assignment, contact at
The objective of this assignment is:
o To give you the idea of practical implementation of some concepts like, definition of classes, Data members, member functions, Constructors, Composition etc.

For any query about the assignment, contact at
Marks: 20

Problem Statement:
In continuation of Assignment No. 1, we have the following part of class diagram showing composition relationship:

You are required to implement above class diagram (complete program) in C++ with all data members, constructors, member functions and concept (composition) given in the class diagram/table 1.
See the sample output to view the messages you need to print in constructors of all classes. In case of parameterize constructors, you can select any of data member(s) according to the type of constructor.

Class Name Attribute Name Attribute Data Type Functions
Size Integer -Default constructor
-Getters and Setters
Mass Double
Age Integer

Size Integer -Default constructor
-One parameter overloaded constructor()
-Getters and Setters
Mass Double
Age Integer

Size Integer -Default constructor
-Two parameters overloaded Constructor
-Getters and Setters
Mass Double
Velocity Double

Size Integer -Default constructor()
-Three parameter overloaded Constructor
-Getters and Setters
Mass Double
Velocity Double
Table 1: Classes

Sample Output:

Best of luck!

Lectures Covered: This assignment covers Lecture # 7-15
Deadline: Your assignment must be uploaded/submitted at or before December 1, 2016

Views: 7221

Replies to This Discussion plz send me solution

yaar ap logo ko kitni baar bataya hai k yahan email mt post kya kro private inbox kya kro plz


check ur gmail

Wahab faheem .... kindly share assignment with all of us....... Or kindly send it to me .... waiting for your kind reply....... 

give mu ur emaiil on private

Check ur wall.........

mojy b send plz


bhai plz end me




Looking For Something? Search Below

Latest Activity

+ ! zεε liked иαвєєℓ αнмє∂'s discussion CS619 Project Students
4 hours ago
Hamid left a comment for jiya ali
5 hours ago
Hamid and jiya ali are now friends
5 hours ago
Usama shahid joined + M.Tariq Malik's group
12 hours ago
Yasir Hassan liked + ♥ Haniya Khan's photo
13 hours ago
Profile Iconsria aslam, Khawir Abbas and Sana Shafaq joined Virtual University of Pakistan
16 hours ago
+ ♥ Haniya Khan posted a photo
Abdul Rehman updated their profile

VIP Member Badge & Others

How to Get This Badge at Your Profile DP


Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

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

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