We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Dear Student Please discus here about this Assignment :) . Thanks


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 9044

Replies to This Discussion

Discus here plz

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.

i want to understand,how to make a proggrame?i listen lectures,but cant make proggrame yet successfully,what should i do?

Assignment

 

 

Write a C++ program that will create a class named Computer. This class will have 4 data members

  1. 1.      Vendor
  2. 2.      CPU
  3. 3.      Hard disk
  4. 4.      RAM

 

You are required to write a default and a parameterized constructor for this class. Also write getter and setter functions for each data member of the class.

 

In the default constructor, you will initialize all the data members with default values. The message “Default constructor called…” should be displayed whenever an object is created using default constructor.

 

In parameterized constructor, you will initialize all the data members with the values passed to it as arguments. You are required to use setter functions inside parameterized constructor to initialize the data members. The message “Parameterized constructor called…” should be displayed whenever an object is created with parameterized constructor.

 

In the main() function, create 2 objects (1 using default and 1 using parameterized constructor) and display the values of data members of both objects using getter functions.

 

Sample output for the program is shown below:

 

 

 

Sample Output:

 

 

 

 

NOTE:

You must use setter functions inside the parameterized constructor for initialization of the data members with the values passed by arguments. Also you have to use getter functions in the main() to show the values of data members. Marks will be deducted if any of these requirements is not fulfilled.

 

 

 

Kia sub ne submit kar li hy , koi to discuss kary assignment...

which assignment?

g han ker di he submit

es ki samaj nai lg rai koi bta dy plz.

You must use setter functions inside the parameterized constructor for initialization of the data members with the values passed by arguments. Also you have to use getter functions in the main() to show the values of data members. Marks will be deducted if any of these requirements is not fulfilled.

yar ye get function ko main me use krne wala kia chakar h koi help krdo

RSS

Looking For Something? Search Here

Latest Activity

Profile IconHafiza Tehreem Fatima, Talib Hussain, Raheem Bakhsh and 1 more joined Virtual University of Pakistan
2 minutes ago
Tasha Malik liked +M.Tariq Malik's discussion Are You Satisfied With Your Result | POLL
5 minutes ago
ammara khan joined +M.Tariq Malik's group
16 minutes ago
ammara khan replied to +M.Tariq Malik's discussion Are You Satisfied With Your Result | POLL
29 minutes ago
saba Ahmed replied to +M.Tariq Malik's discussion Are You Satisfied With Your Result | POLL
37 minutes ago
one and only updated their profile
1 hour ago
heer rani BS IT is now friends with Tender_heart and Shining Star
2 hours ago
Keep Smiling updated their profile
2 hours ago

HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

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

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

.