Back to marketplace

Chapter 58 - Use of object - oriented techniques

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

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

Card preview (24)

#1
Front (Question)

What is procedural language?

Back (Answer)

» Uses a series of step-by-step instructions on how to solve the problem » Breaks down into a number of smaller modules - consists of functions or procedures

#2
Front (Question)

Where is the data held in procedural programming?

Back (Answer)

» Held in seperate primitive variables such as integer or char, or in data structures such as array, list or string

#3
Front (Question)

How is everything viewed as in object-oriented programming?

Back (Answer)

» As a collection of objects

#4
Front (Question)

What are the attributes?

Back (Answer)

» The features of the object » Variables contained within and associated to an object

#5
Front (Question)

What are methods?

Back (Answer)

» The behaviour of the object » Actions that can be pefromed by an object

#6
Front (Question)

What is the class?

Back (Answer)

» A blueprint or template for an object/multiple » Defines the attributes and behaviours of objects in that class

#7
Front (Question)

How are attributes declared as?

Back (Answer)

» Declared as private

#8
Front (Question)

How are methods declared as?

Back (Answer)

» Public

#9
Front (Question)

What is the principle of information hiding?

Back (Answer)

» Where a class cannot directly access the attributes of another class, when they are declared private

#10
Front (Question)

What is a constructor?

Back (Answer)

» A special type of method to construct/build objects in a class

#11
Front (Question)

What instantiation?

Back (Answer)

» Process of creating new instances of a class

#12
Front (Question)

What are objects and instance?

Back (Answer)

» Synonymous

#13
Front (Question)

What is a reference variable?

Back (Answer)

» The object, where memory locations stores the data

#14
Front (Question)

What is the purpose of a variable reference diagram?

Back (Answer)

» Shows in graphical form the object referenced by the variables

#15
Front (Question)

What is an object?

Back (Answer)

» An instance of a new class

#16
Front (Question)

What are instances?

Back (Answer)

» Objects that belong to a class

#17
Front (Question)

What is the principle of encapsulation?

Back (Answer)

» When an obejct ecapsulates both its states - the values of its instance variables » So it doesnt affect any other objects

#18
Front (Question)

How can you initialise a class and a constructor?

Back (Answer)

» class example1: def__init__(,s,): self.s = s

#19
Front (Question)

How can you use a getter?

Back (Answer)

» def get_name(): return name

#20
Front (Question)

How can you use a set name?

Back (Answer)

» def set_name(self): self.name = name

#21
Front (Question)

What does init stand for?

Back (Answer)

» Initalise

#22
Front (Question)

What are getters?

Back (Answer)

» To make use of information - we need methods that give us access to data

#23
Front (Question)

What does a get method do?

Back (Answer)

» Allows the attribute to be accessed/returned

#24
Front (Question)

What does a set method allow?

Back (Answer)

» The attribute to be changed with parameters