Ch1 Flashcards

1
Q

What is Object Oriented Programming?

A

A programming paradigm that was created to deal with the growing complexity of large software systems

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

What happens as applications grow in size and complexity?

A

They become increasingly difficult to maintain. One change in code can have a ripple effect throughout the program

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

What does OO programming allow programmers to do?

A

Allows them to create containers for data that can be manipulated without affecting the entire program

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

What is encapsulation?

A

A form of data protection so that data cannot be manipulated without obvious intention

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

What does encapsulation do?

A

Defines the boundaries in your application and allows code to achieve new levels of complexity

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

What is polymorphism?

A

It is the ability for different data types to respond to a common interface

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

What is inheritance?

A

Where a class inherits the behaviors of another class, referred to as the superclass

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

What does inheritance do?

A

Gives the power to define basic classes with large reusability and smaller subclasses for more fine-grained, detailed behaviors

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

What is another way to apply Polymorphic structure?

A

Using a module

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

What is a module?

A

Similar to classes in that they shared contained behaviors; but you cannot create an object with a module

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

How do you mix a module in with a class?

A

The include method

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

What happens after mixing in a module?

A

The behaviors declared in that module are available to the class and it’s objects

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

What is an object?

A

Anything that is said to have a value is an object. E.g., strings, integers, arrays, hashes etc.

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

What are objects created from?

A

Classes

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

What about objects is defined in classes?

A

Attributes and behaviors

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

How can we find the method look up chain?

A

Via the ancestors method