Which of the following questions should you ask yourself in order to determine if you have named your class properly? Is the class name a verb? Can I describe an object of the class? Does the class name describe the tasks that this class will accomplish? Does the class name contain eight or fewer characters?
Added by Deanna A.
Close
Step 1
If it is, then it may not be a suitable name for a class as class names should typically be nouns. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 70 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Select the verbs that belong in the Level 1 Recall and Reproduction category of Webb's Depth of Knowledge Question 3 options: list analyze name design
Akash M.
Question 7 (2 points) Match each term below with the best description. 1. Everything you know about a class and everything you know how to do with that class are contained within the class definition. 2. Each subclass provides the same interface so that outside code doesn't have to know what kind of subclass is being referenced. For example, a SquareShape provides a draw method that draws squares, while a CircleShape provides a draw method that draws circles. Outside code just tells the object to draw, without needing to know whether a circle or a square will be drawn. 3. Certain properties and methods of a class are marked "Private" and can only be accessed through a "Public" interface. This gives the programmer a certain amount of freedom to change the implementation, without breaking anyone else's code. 4. Properties and methods that are common to all subclasses are contained within a parent class. Child classes can access these properties and methods as if they were defined as part of the child class.
Madhur L.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD