Object-Oriented Programming Concepts (AQA A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
10 cards from this deck
ShowHide
Practise the cards
10 cards from this deck
Encapsulation in OOP
Encapsulation in OOP
Keeping data and code together within the same object
Class in OOP
Class in OOP
Blueprint/template defining properties and methods of objects
Object in OOP
Object in OOP
Specific instance of a class with unique data values
Inheritance key rule
Inheritance key rule
Can add features but cannot delete what's been inherited
Polymorphism
Polymorphism
Method from base class can be redefined in subclasses
Overriding
Overriding
Subclass implements its own version of inherited method
Instantiation
Instantiation
Process of creating an actual object from a class definition
Constructor
Constructor
Special subroutine that initialises object with start values
Composition aggregation
Composition aggregation
Contained objects cannot exist if container is destroyed
Association aggregation
Association aggregation
Contained objects can exist independently of container
