stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Basic Object Oriented Concepts Flashcards | StudBud
Explore
/
Basic Object Oriented Concepts
Basic Object Oriented Concepts
10 terms
·
StudBud Administration
A quiz about Object Oriented Programming concepts
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
What does the keyword
public
signify?
other objects of the same type may access that entity only
any other classes may access that entity
no other objects my access that entity
only objects in the same folder may access that entity
2
The fact that the class Animal contains information about one single animal is an example of...
Information Hiding
Encapsulation
Abstraction
A Constructor
3
To create a new variable of type Animal you would use the code
Animal a = new Animal();
Animal = new Animal();
a = new Animal();
Animal a = Animal();
4
What is the purpose of the keyword
this
?
this signifies a constructor
this signifies a helper method in a class
this signifies instance variables belonging to the object
this signifies an accessor method
5
Classes contain 3 things. These are...
instance variables, a main method, static variables
instance variables, constructors, and methods
a toString method, a constructor, and other methods
instance variables, comments, and constructors
6
The code to create a new object is called a ...
Class
Method
Instance Variable
Constructor
7
An private property is accessed by
via public keyword
directly
get and set functions
8
After running the code
String a;
what will a store?
null
the empty String ""
nothing; an error will occur
the letter 'a'
9
What does the keyword
static
mean?
The method does not change
The code runs when play is pressed in Eclipse
The variable does not change
There is only one copy for all of the running code
10
All instance variables should have a visibility of
inherited
public
protected
private