Object Oriented Languages (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Class in OOP definition
Class in OOP definition
Blueprint/template for creating objects
What a class defines for instances
What a class defines for instances
Shared properties and behaviours
Three key benefits of classes
Three key benefits of classes
Code organisation, reuse, modularity
Class naming convention
Class naming convention
Capitalised camel case
Python keyword to define class
Python keyword to define class
class
Components of class structure
Components of class structure
Class name and body
What class body contains
What class body contains
Attributes and methods
Primary purpose of a class
Primary purpose of a class
Provide standardised blueprint for multiple similar objects
What instantiation creates
What instantiation creates
Actual instance from class blueprint
Does instantiation alter the class?
Does instantiation alter the class?
No, only produces instances
Class without instantiation
Class without instantiation
Conceptual structure, not a particular instance
What classes enable for programmers
What classes enable for programmers
Conceptualise real-world entities as manageable code
