Object Oriented Techniques (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What does Object-Oriented Programming organise software design around?
What does Object-Oriented Programming organise software design around?
Objects
What is a class in OOP?
What is a class in OOP?
A blueprint for creating objects
How are private attributes prefixed in Python?
How are private attributes prefixed in Python?
With _ or __
Which decorator is used to define static methods?
Which decorator is used to define static methods?
@staticmethod
What is encapsulation?
What is encapsulation?
Restricting direct access to protect integrity
What are getters and setters used for?
What are getters and setters used for?
Access and modify private attributes
What does inheritance promote in OOP?
What does inheritance promote in OOP?
Code reuse
What is a subclass?
What is a subclass?
A class that inherits from a superclass
What does the super() function allow?
What does the super() function allow?
Access to superclass methods/attributes
What is polymorphism?
What is polymorphism?
Treating objects of different classes as a common superclass
In class diagrams, what does the + symbol represent?
In class diagrams, what does the + symbol represent?
Public
Which is a benefit of OOP?
Which is a benefit of OOP?
Reusability
