002 - Object-Oriented Programming Concepts Flashcards

1
Q

A software object’s state is stored in ___.

A

Class fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

software object’s behavior is exposed through ___.

A

Methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data ___.

A

Encapsulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A blueprint for a software object is called a ___.

A

Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Common behavior can be defined in a ___ and inherited into a ___ using the ___ keyword.

A
Superclass 
Subclass 
Extends
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A collection of methods with no implementation is called an ___.

A

Interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A namespace that organizes classes and interfaces by functionality is called a ___.

A

Package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The term API stands for ___?

A

Application programming interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Real-world objects contain ___ and ___.

A

States and behaviors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

______ is a software bundle of related state and behavior.

A

An object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

__________ are often used to model the real-world objects that you find in everyday life

A

Software objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

_______ is a blueprint or prototype from which objects are created

A

A class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

__________ is a contract between a class and the outside world.

A

An interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

_______ is a namespace for organizing classes and interfaces in a logical manner.

A

A package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Placing your code into ________ makes large software projects easier to manage.

A

packages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

________ operate on an object’s internal state and serve as the primary mechanism for object-to-object communication.

17
Q

The source code for an object can be written and maintained independently of the source code for other objects.

A

Modularity

18
Q

By interacting only with an object’s methods, the details of its internal implementation remain hidden from the outside world.

A

Information-hiding

19
Q

If an object already exists (perhaps written by another software developer), you can use that object in your program.

A

Code re-use

20
Q

If a particular object turns out to be problematic, you can simply remove it from your application and plug in a different object as its replacement

A

Pluggability and debugging ease

21
Q

your bicycle is an ______ of the ____of ____known as bicycles

A

your bicycle is an instance of the class of objects known as bicycles

22
Q

Object-oriented programming allows classes to ______ commonly used state and behavior from other classes.

23
Q

each class is allowed to have one direct ________, and each ________has the potential for an unlimited number of ________:

A

each class is allowed to have one direct superclass, and each superclass has the potential for an unlimited number of subclasses:

24
Q

to inherit from a class, we use the keyword

25
Q

____________ is a group of related methods with empty bodies

A

an interface

26
Q

to declare the use of an interface, we use the keyword

A

implements

27
Q

When is the interface contract forced?

A

At compile time

28
Q

The _____________________ contains the complete listing for all packages, interfaces, classes, fields, and methods supplied by the Java SE platform.

A

Java Platform API Specification