Object Oriented Paradigm Flashcards

1
Q

A class defines the set of shared _________ and _________ found in each object within that class.

A

Attributes, behaviors.

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

In a single unit called an object, what two things are combined?

A

Data, and the functions that operate on that data.

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

Classes, like humans, can have characteristics and __________?

A

Behaviors

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

This is more detailed instance of a class…

A

Object. ex. Class = Student; Object = David.

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

What term is used when an object is created from a class?

A

Instantiation.

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

APIE stands for what?

A

Abstraction, Encapsulation, Inheritance, Polymorphism.

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

Abstraction means what?

A

Abstract up to only the features, properties or functions that are relevant.

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

_________ dictates what should and should not be abstracted.

A

Context.

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

What is encapsulation?

A

The act of grouping into a single object both data and the operations that affect that data.

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

What is required to be for a method that wants to access data stored within an object?

A

That method needs to be defined by that object’s class.

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

What are two reasons as to why encap is significant?

A

Reliable objects that have total control over their attributes.

Only the objects change attribute values, so a potential issue is contained.

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

Inheritance is what?

A

The process of creating new classes from base classes.

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

What is a derived class and a base class

A

Derived = Used a previous (Base Class) as a template.

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

True or False. The derived class is limited to the attributes and behaviors of the parent/base class.

A

False, the derived class can ADD attributes and behaviors.

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

What is polymorphism?

A

Being able to perform the same operation on different objects. EX. telling a bird to move. Some fly, some run, some swim.

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

An object is to a class, what a variable is to a ________.

A

Data type.

17
Q

An object is said to be what towards a class?

A

An instance.

18
Q

What are methods?

A

Member functions that are included within a class in order to implement a specific behavior that objects of that class are capable of performing.

19
Q

How is extensibility similar to a derived class?

A

Extensibility refers to creating new DATA TYPES from existing ones, where derived classes are created from existing base classes.

20
Q

What is information hiding?

A

Information hiding is the technique of concealing implementation details within the objects themselves, while the interface remains visible.

21
Q

A system of objects is defined as:

A

Two or more interacting or interrelated, non-nested objects.