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. 03 SEMESTER Spring 2017 CS304- Object Oriented Programming Due Date: July 19, 2017

Assignment No. 03
SEMESTER Spring 2017
CS304- Object Oriented Programming

Total Marks: 20

Due Date:  July 19, 2017



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 the due date.
  • The assignment is submitted via email.
  • The assignment is copied from the 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 the assignment is:

  • To give you the idea of practical implementation of Polymorphism.


For any query about the assignment, contact at





Problem Statement:

In continuation of Assignment No. 1 and 2, we have the following part of class diagram:


Car, SUV and HDV are concrete classes as opposed to Vehicle with a pure virtual function.

You are required to implement polymorphism in the above scenario by writing a complete C++ program with the mentioned data members and member functions.

In the main function, create one object each of Car, SUV and HDV and call their respective showGears() function thus implementing the concept of polymorphism.

Following is the sample output that you need to print:




Sample Output:



Best of luck!




Lectures Covered:  This assignment covers Lecture # 29-31


Views: 2726

Replies to This Discussion

Plz tell me the solution??

   Gimme solution plzz  

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>



For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.


.•°How to Download past papers from study groups°•.


Please Click on the below link to see…

.... How to Find Your Subject Study Group & Join .... 

check my facebook page java work house for solution...

304 ka solution to ni h....:/

i have send the solution to this page may be they will upload soon!

will u plz snd the solution here???

sorry i cant upload here goto Facebook

and search java work house.

plzzzz tell solution??

koi to jwab do plzzz??


thx b ro


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

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