OOP Definitions Flashcards
Class
A template for creating objects
Object
An instance of a class
Attribute
A specific item of data for a class/object
Method
A subroutine defined within a class
Public
A property of a method which allows it to be accessed from everywhere
Private
A property of a method which allows it to only be accessed within the class
Instantiation
The term for creating an object from a class
Encapsulation
Data held within a class can only be accessed via its methods
Abstraction
The ability to represent a real-world object as an abstracted representation in code
Constructor
A special method which creates an object from a class
Overloading
Ability for different methods to have the same names but different numbers of parameters which therefore exhibit different behaviours
Base class
A class from which other inherited classes are derived
Inheritance
The ability to take a base class and add further functionality specific to the inherited class
Polvmorphism
Ability for methods of the same name to be used in inherited classes with different behaviours exhibited