Which data type should you use?
You are creating a variable for an application.
You need to store data that has the following characteristics in this variable:
Consists of numbers and characters
Includes numbers that have decimal points
Which data type should you use?
The purpose of a constructor in a class is to:
The purpose of a constructor in a class is to:
Which access modifier should you use?
You are designing a class for an application. You need to restrict the availability of the
member variable accessCount to the base class and to any classes that are derived from the
base class.
Which access modifier should you use?
What is the value of _number after the code is executed?
You need to allow a consumer of a class to modify a private data member
You need to allow a consumer of a class to modify a private data member.
What should you do?
Which term is used to describe a class that inherits functionality from an existing class?
Which term is used to describe a class that inherits functionality from an existing class?
Which term is used to describe this object-oriented concept?
A class named Manager is derived from a parent class named Employee. The Manager
class includes characteristics that are unique to managers.
Which term is used to describe this object-oriented concept?
Which term is used to describe this object-oriented concept?
Two classes named Circle and Square inherit from the Shape class. Circle and Square both
inherit Area from the Shape class, but each computes Area differently.
Which term is used to describe this object-oriented concept?
Which type of application should you choose?
You are creating an application that presents users with a graphical interface in which they
computers that do not have network connectivity.
Which type of application should you choose?
The elements of an array must be accessed by:
The elements of an array must be accessed by: