Objects (OOP) (OCR A-Level Computer Science): Flashcards

📚Flashcards
Objects (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

What is a class in OOP?

Blueprint defining structure & behaviour of objects

What is an object in OOP?

Instance of a class with attributes & methods

What are attributes in OOP?

Data that represents the state of an object

What are methods in OOP?

Functions defined within a class describing behaviours

How to create an object

Call the class like a function with initialisation data

Relationship between object and class

Object is a specific instance of a class

Do objects share attribute values?

No - each object has its own set of attribute values

What can methods do with attributes?

Use and modify the object's attributes

How can you modify object attributes?

Directly or by using methods

How do multiple objects operate?

Each object operates independently

What do objects bundle together?

Both data (attributes) and actions (methods)

How do objects hold their state?

Through attributes

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

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