Object Oriented Languages (OCR A-Level Computer Science): Flashcards

📚Flashcards
Classes (OOP)
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

Class in OOP definition

Blueprint/template for creating objects

What a class defines for instances

Shared properties and behaviours

Three key benefits of classes

Code organisation, reuse, modularity

Class naming convention

Capitalised camel case

Python keyword to define class

class

Components of class structure

Class name and body

What class body contains

Attributes and methods

Primary purpose of a class

Provide standardised blueprint for multiple similar objects

What instantiation creates

Actual instance from class blueprint

Does instantiation alter the class?

No, only produces instances

Class without instantiation

Conceptual structure, not a particular instance

What classes enable for programmers

Conceptualise real-world entities as manageable code

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.