We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

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

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 8878

.

+ 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)

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

Latest Activity

مخلص liked Ur's AB's's blog post Jadu wa Jinnat insan K badan mein kab aur kesy dakhil hoty....جادو و جنات انسان کے بدن میں کب داخل ھوتے
27 minutes ago
مخلص liked + ! ! ! ! ! ! BLaiRe ! !+'s blog post ***NooR E KeyAnAT******HaPpy BiRtH DaY
27 minutes ago
مخلص liked +¢αяєℓєѕѕ gιяℓ's blog post Now No One Can Break me.........!
27 minutes ago
مخلص liked + ! ! ! ! ! ! maho+++'s blog post muhabat k nam pegham
27 minutes ago
مخلص liked Ur's AB's's blog post Jinnat Ki Alamat.....جنات کی علامات
27 minutes ago
مخلص liked + ! ! ! ! ! ! BLaiRe ! !+'s blog post *****jishan eid milad ul nabi mubarik in advance*****
27 minutes ago
مخلص liked + ! ! ! ! ! ! ! Ayesha +++'s blog post some suggestions of Hazrat Muhammad (PBUH)
27 minutes ago
مخلص liked + ! ! ! ! ! ! maho+++'s blog post Muhammad Mustafa Aye Bahar Andar Bahar Aaye
27 minutes ago
مخلص liked + ! ! ! ! ! MySterIouS's blog post + Beginning +
27 minutes ago
مخلص liked + ! ! ! ! ! MySterIouS's blog post + Attitude +
27 minutes ago
مخلص liked Maddsar Ghafoor's discussion Assigment CS101 # 5
28 minutes ago
مخلص liked + M.Tariq Malik's discussion Top Ways to Find Your Career Path
28 minutes ago
مخلص liked + M.Tariq Malik's discussion How to Get Full Marks In Quiz
28 minutes ago
مخلص liked Mani Siddiqui BS VIII's discussion Kash Main Doure Payamber
28 minutes ago
مخلص liked +¢αяєℓєѕѕ gιяℓ's discussion Khuda Aur Insan
28 minutes ago
مخلص liked +Umar Amin+'s discussion Happy Birthday to my sweet and lovely friend mmm
30 minutes ago
مخلص liked + sílєnzíσ's discussion Microsoft Imagine Cup!
30 minutes ago
مخلص liked Annu's discussion Please share solution for assig # 01 of wdu 602 fall 2019
30 minutes ago
مخلص liked +***piya o ry piya***+'s discussion eng301 solution chahiyaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
30 minutes ago
مخلص liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion The World's most expensive Proposal
30 minutes ago

Today Top Members 

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

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