Question: in c++ Write a class named Printer that contains the following variables, methods, and constructors: a. Private instance variables that store a printer identifier, printer

in c++ Write a class named Printer that contains the following variables, methods, and constructors: a. Private instance variables that store a printer identifier, printer name and printer model. The identifier is an int, name is a string and model is string. b. A constructor that initializes the printer identifier, printer name and printer model to values specified by parameters. c. A no -arg constructor that sets the part identifier to 1000 and the printer name to HP 3000 and the part model to "Laserjet 3000" . d. Method that allows the user to change the name of the printer with the new value received as parameter. e. A report method that returns the printer identifier, printer name and printer model each in a new line of output.. f. A main method where 2 objects are created using each of the 2 constructors.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!