OOP Flashcards

1
Q

Why do we need to use OOP?

A
  • It allows us to simplify a complex system.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an object?

A

It’s an abstract data type created by a developer. It can include multiple properties and methods.

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

What is class?

A

A class is a blueprint(план) or prototype that defines the variables(properties) and the methods (functions) common to all objects of a certain kind.

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

What kind of hierarchy do you know?

A
  • part of ( Engine part of a car ) ( Целое/ Часть)

- is a ( Cat is a animal )( Общее частное)

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

What is decomposition?

A

Breaking down a complex problem or system into smaller parts that are more manageable and easier to understand.

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

What is object oriented programming?

A

Object-oriented programming (OOP) is a programming paradigm based on the concept of “objects”, which can contain data (attributes or properties), and procedures (often known as methods).

Object-oriented programming (OOP) is about encapsulating data and behavior into objects

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

What is Procedural Programming?

A

Is a programming paradigm based upon the concept of the procedure call. Procedures, also known functions, simply contain a series of computational steps to be carried out.

It is about writing a list of instructions to tell the computer what to do step by step

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

What is Functional programming?

A

Is a programming paradigm — a style of building the structure and elements of computer programs — that treats computation as the evaluation of mathematical functions and avoids changing state and mutable data.

Functional programming (FP) is about passing data from function to function to function to get a result. Functions in FP have to be pure functions, they should avoid shared state, and side effects and data should be immutable

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

What are the base OOP concepts?

A
  • Abstraction
  • Inheritance
  • Polymorphism
  • Encapsulation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Polymorphism?

A

You can also think of polymorphism as the ability of an object to “pretend” to be something else, usually a class it extends or an interface it implements. In our example, the dogs and cats in the bag were pretending to be generic animals.

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