Which of the following class members that should be public?

Summary 5.1-5.4

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
LaShawne Long Myles
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
instance varibles
constructors
methods used within the class
methods used in the main
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the scope of private methods and private instance variables?
the declaring class
the main class
any class
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Classes’ access specifier is generally set to...
accessor
mutator
private
public
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following would be the state of the Object tree?
int height
int girth
boolean deciduous
private boolean deciduous
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
We can set the initial state of an object through...
methods
constructors
variables
instance varibles
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Objects cannot have objects as attributes.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When we use a class as an attribute in another class the class we are using as an attribute will be the ______ _____ of the class that is using it as an attibute.
data type
instance variable
parameter
method
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
Python Objects and Recursion

Quiz
•
10th Grade
9 questions
Option D - OOP

Quiz
•
11th - 12th Grade
12 questions
Java Class vocabulary

Quiz
•
9th Grade - University
11 questions
Object Oriented Programming

Quiz
•
12th Grade
10 questions
Grade 9 - User Defined Methods

Quiz
•
9th Grade
14 questions
Object Orientated Programming 3

Quiz
•
11th - 12th Grade
15 questions
Unit 2 Inheritance in Java

Quiz
•
12th Grade - University
14 questions
CSA 1.1.1 Why Programming? Why Java?

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University