Object Oriented Languages (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
11 questions from this quiz
ShowHide
Practise the questions
11 questions from this quiz
In OOP, what is a class?
In OOP, what is a class?
A blueprint to define & create objects
What do classes define for their instances?
What do classes define for their instances?
Shared properties & behaviours
How are class names generally written?
How are class names generally written?
In capitalised camel case
Which keyword is used to define a new class in Python?
Which keyword is used to define a new class in Python?
class
What does the structure of a class consist of?
What does the structure of a class consist of?
A class name and a body
What does the class body outline?
What does the class body outline?
Properties & actions of all instances
What is a class alone, before instantiation?
What is a class alone, before instantiation?
A conceptual structure
What does instantiating a class create?
What does instantiating a class create?
An actual instance of that blueprint
Does instantiation alter the class itself?
Does instantiation alter the class itself?
No, it only produces instances
Which benefit do classes provide for code?
Which benefit do classes provide for code?
Organisation, reuse & modularity
What central principles do classes promote?
What central principles do classes promote?
Reusability & modularity
