ITE 409 - Chapter 8: Chapter 8 Classes and Objects: A Deeper Look. Questions and Answers.
ITE 409 - Chapter 8: Chapter 8 Classes and Objects: A Deeper Look. Questions and Answers. Chapter 8 Classes and Objects: A Deeper Look pp.Section 8.2 Time Class Case Sudy Time1 Class Declaration 8.2 Q1: The _________ of a class are also called the public services or the public interface that the class provides to its clients. 1. public constructors. 2. public instance variables. 3. public methods. 4. All of the above. 8.2 Q2: The static method ________ of class String returns a formatted String. 1. printf. 2. format. 3. formatString. 4. toFormatString. Notes on the Time1 Class Declaration 8.2 Q3: Which statement is false? 1. The actual data representation used within the class is of no concern to the class’s clients. 2. Clients generally care about what the class does but not how the class does it. 3. Clients are usually involved in a class’s implementation. 4. Hiding the implementation reduces the possibility that clients will become dependent on class-implementation details. qq.Section 8.3 Controlling Access to Members 8.3 Q1: Which of the following should usually be private? 1. Methods. 2. Constructors. 3. Variables (or fields). 4. All of the above. 8.3
Geschreven voor
- Instelling
- Western Governors University
- Vak
- ITE 409
Documentinformatie
- Geüpload op
- 9 maart 2022
- Aantal pagina's
- 11
- Geschreven in
- 2021/2022
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
ite 409
-
ite 409ch08