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

📚Flashcards
Object Oriented Techniques
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

15 cards from this deck

Show

OOP definition

Programming paradigm organizing software around objects

Class definition

Blueprint for creating objects

Object definition

Instance of a class

Attributes definition

Store data or state of an object

Private attributes in Python

Prefixed with _ or __

Methods definition

Functions within a class describing object behaviours

Encapsulation definition

Restricting access to object's data to protect integrity

Getters purpose

Access private attributes

Setters purpose

Modify private attributes

Inheritance definition

Subclass inherits attributes/methods from superclass

super() function purpose

Access superclass methods and attributes

Polymorphism definition

Objects of different classes treated as common superclass

Class diagram: + and - symbols

  • is public, - is private

Superclass definition

Class from which other classes inherit

OOP benefit: modularity

Programs divided into self-contained objects

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Quizzes by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

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

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