Question
Variables needed only inside a method should be defined as _______________.a. private member datab. local variablesc. propertiesd. argumentse. parameters
Step 1
Private member data is used for variables that should be accessible only within the class, not just a method. b. Local variables are defined within a method and are only accessible within that method. c. Properties are used to expose private member data with get Show more…
Show all steps
Your feedback will help us improve your experience
Aditya Sood and 57 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
Constructors are normally defined with a ____________ access modifier; data members with a _______________ access modifier; and properties with a _______________ access modifier. a. public, public, public b. private, private, private c. public, public, private d. public, private, public e. private, public, public
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD