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
Written for
- Institution
-
Arizona State University
- Course
-
CSE 110
Document information
- Uploaded on
- March 4, 2023
- Number of pages
- 8
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cse 110 principles of programming chapter 8 questions with correct answers
Also available in package deal