Question: 1. (2 points) An instance of a class is known as a/an __________. 2. (2 points) A function is to a standard C++ program as

1. (2 points) An instance of a class is known as a/an __________.

2. (2 points) A function is to a standard C++ program as a __________ is to an object oriented program.

3. (2 points) True or False: Items within a class default to public if the keywords public and private are not include within the class definition.

4. (2 points) The variables within a class are known as __________.

5. (2 points) setXXXX and getXXXX methods are also known as __________ methods.

6. (2 points) True or False: Constructors can have any name that you desire.

7. (2 points) True or False: There can be one and only one constructor within a class definition.

8. (2 points) Create an instance of the Time class called time1. It should have an initial time with the hour value of 10, minute value of 3, and second value of 28.

9. (2 points) Call the printTime method for an instance of the Time class named time1.

10. (2 points) Write a single line of C++ code that will display/print only the hour value for an instance of the Time class named time1.

Step by Step Solution

3.37 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 2 points An instance of a class is known as aan object 2 2 points A function is to a standard C pr... View full answer

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 Electrical Engineering Questions!