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
Get step-by-step solutions from verified subject matter experts
