Back to marketplace

Programming Paradigm

No description yet. This curated deck is ready for daily study.

Total cards: 17•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (17)

#1
Front (Question)

What is an object

Back (Answer)

a container used to store both data and instruction , it is created from classes using instantiation

#2
Front (Question)

WHat is a class

Back (Answer)

specify what properties and methods objects of their type would have

#3
Front (Question)

WHat is a private method

Back (Answer)

Can only be accessed within the class it was declared and nowhere else (two underscore )

#4
Front (Question)

WHat is a public method

Back (Answer)

a function or procedure within a class that’s accessible and callable from any other part of the program, inside or outside its class

#5
Front (Question)

what is a protected method

Back (Answer)

A protected method is a class function that is intended to be accessible only within the class itself and its subclasses (child classes) one underscore

#6
Front (Question)

WHat is encapsulation

Back (Answer)

grouping of attributes and methods are stored in the objects / combining methods and procedures to form an object

#7
Front (Question)

WHat is inheritance

Back (Answer)

allows one class to share the properties and methods of another class . It “is a “ relationship

#8
Front (Question)

What is polymorphism

Back (Answer)

WHen objects are processed differently depending on their class

#9
Front (Question)

WHat is overriding

Back (Answer)

Sane name as a method in an inherited class but different implementation

#10
Front (Question)

What is association

Back (Answer)

descibed as having a “has a “ relationship

#11
Front (Question)

WHat is aggregation

Back (Answer)

weaker type of association , it would exists if its containing object is destroyed

#12
Front (Question)

What is composition

Back (Answer)

The containing object is destroyed , the association object is also destroyed ( stronger relationship)

#13
Front (Question)

Why is oop used

Back (Answer)

it provides program with clear structure makes developing and testing easier for developers Allows large projects to be divided among teams of developers it improves the space efficency of code

#14
Front (Question)

List the three design principles used in oop

Back (Answer)

Encapsulate what varies Favour composition over inheritance Program to interface , not implementation

#15
Front (Question)

Explain more on encapsulate what vaaries

Back (Answer)

Any requirement which are likely to change in the future would be encapsulated in a class , this way future changes can be easily made when required

#16
Front (Question)

Explain more on favour composition over inheritance

Back (Answer)

composition has a more flexible relationship by unrelated classes

#17
Front (Question)

Explain more on program to interface not implemetation

Back (Answer)

allow unrelated classes to make use of similar methods