CSE 110 - Principles of Programming: Chapter 8 questions with correct answers
Given the following class definition, which of the following are considered part of the class's public interface? public class CashRegister { public static final double DIME_VALUE = 0.1; private state int objectcounter; public void updateDimes(int dimes) {. . .} private boolean update counter(int counter) {. . .} } CORRECT ANSWER DIME_VALUE and updateDimes Given the following class definition, which of the following are considered part of the class's public interface? public class Motorcycle { public static final int WHEEL_COUNT = 2; private int rpmRating; public void updatePrice(double increase) {...} private String designCode() {...} } CORRECT ANSWER WHEEL_COUNT and updatePrice Given the following class definition, which of the following are NOT considered part of the class's public interface? public class CashRegister
Escuela, estudio y materia
- Institución
-
Arizona State University
- Grado
-
CSE 110
Información del documento
- Subido en
- 4 de marzo de 2023
- Número de páginas
- 8
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
cse 110 principles of programming chapter 8 questions with correct answers
Documento también disponible en un lote