0%
0 / 15 answered
Abstraction and Program Design Practice Test
•15 QuestionsQuestion
1 / 15
Q1
A programmer is designing a class to model a specific type of laptop computer. The specification notes that all laptops of this model share the same manufacturer name and screen resolution. However, each individual laptop has its own unique serial number and current battery percentage. How should these attributes best be represented in the Laptop class?
A programmer is designing a class to model a specific type of laptop computer. The specification notes that all laptops of this model share the same manufacturer name and screen resolution. However, each individual laptop has its own unique serial number and current battery percentage. How should these attributes best be represented in the Laptop class?