QUESTION 28 If we want to class variables can be only accessed by the methods in subclasses, we could use the keyword ____ to define the variables private public protected package
Added by Matthew H.
Close
Step 1
This means we need to declare the variables and specify their data types. Show more…
Show all steps
Your feedback will help us improve your experience
Ct Turner and 65 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
Variables at the class level should be for security reasons: a. public b. private c. visible d. hidden
Sanchit J.
In an object-oriented program, what does declaring an instance variable to be public or private indicate about data coupling? What would be the rationale behind a preference toward declaring instance variables as private?
Which Java keyword is used to refer to a class's hidden data fields? super static void this
John B.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD