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
·
45 plays
A quiz about Object Oriented Programming concepts
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
All instance variables should have a visibility of
protected
public
private
inherited
2
To create a new variable of type Animal you would use the code
Animal a = Animal();
Animal = new Animal();
Animal a = new Animal();
a = new Animal();
3
The code to create a new object is called a ...
Instance Variable
Method
Class
Constructor
4
What does the keyword
public
signify?
other objects of the same type may access that entity only
only objects in the same folder may access that entity
any other classes may access that entity
no other objects my access that entity
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
What is the purpose of the keyword
this
?
this signifies instance variables belonging to the object
this signifies a constructor
this signifies a helper method in a class
this signifies an accessor method
7
The fact that the class Animal contains information about one single animal is an example of...
Encapsulation
Abstraction
A Constructor
Information Hiding
8
An private property is accessed by
via public keyword
get and set functions
directly
9
What does the keyword
static
mean?
The method does not change
The variable does not change
The code runs when play is pressed in Eclipse
There is only one copy for all of the running code
10
After running the code
String a;
what will a store?
nothing; an error will occur
the empty String ""
the letter 'a'
null