Object-Oriented Paradigm and Principles

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/24

flashcard set

Earn XP

Description and Tags

A set of question-and-answer flashcards covering the fundamental principles, terminology, and relationships in object-oriented software modeling as presented in the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

25 Terms

1
New cards

What does the object-oriented approach primarily aim to model?

The real world and its entities.

2
New cards

What does the Object Modeling Technique (OMT) cover in the development life-cycle?

It spans analysis, design, and implementation.

3
New cards

What is the very first activity in object-oriented software engineering?

Classification of entities in the problem/business space.

4
New cards

After potential objects are identified, what happens to the requirements?

They are iteratively modified and refined based on the new classifications.

5
New cards

What does the principle of abstraction state in OO modeling?

Only the relevant details of entities are modeled; irrelevant details are deliberately ignored.

6
New cards

How are collections of classified objects represented in OO?

They are abstracted into classes.

7
New cards

What does a class describe?

The common attributes and behaviors of its object instances.

8
New cards

What is an object in OO terminology?

An instance of a class with its own state and behavior.

9
New cards

How is an object’s state defined?

By the values of its attributes at a specific point in time.

10
New cards

How is an object’s behavior represented?

By the set of operations (methods) it can perform.

11
New cards

What triggers an object’s operation?

Receiving (being sent) a message.

12
New cards

What is encapsulation?

Protecting an object’s internal state via a defined interface, hiding implementation details.

13
New cards

Why does encapsulation ease maintenance?

Because an object’s implementation can change without affecting external code that uses it.

14
New cards

Name three common access specifiers used to implement encapsulation.

Public, private, and protected.

15
New cards

In OO terms, what is a message?

A request sent to an object asking it to execute one of its operations (method call).

16
New cards

What is inheritance?

Defining a new class based on an existing one to reuse code and ease maintenance.

17
New cards

Using the Student example, list two specialization levels beneath "Graduate."

Master and PhD.

18
New cards

In single inheritance, what can a child class do with the parent’s fields and methods?

Inherit and directly access or override them, as allowed by access modifiers.

19
New cards

What is multilevel inheritance?

A hierarchy where Class C inherits from B, which in turn inherits from A.

20
New cards

Define polymorphism in OO.

The ability of the same operation name to behave differently in different classes within the same hierarchy.

21
New cards

List the four main relationship types in OO modeling.

Association, composition, aggregation, and inheritance.

22
New cards

How does composition differ from aggregation regarding object lifespan?

In composition, parts share the same lifespan as the whole; in aggregation, parts can outlive the whole.

23
New cards

Give one example of a normal association from the lecture.

Example: A student attends a course.

24
New cards

Provide an example of composition.

Example: A car has an engine.

25
New cards

Provide an example of aggregation.

Example: A school has teachers.