Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
1 2 points An instance of a class is known as aan object 2 2 points A function is to a standard C pr...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started