OOP terminology 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 through its methods
Abstraction
The ability to represent a real-world object as an abstracted representation in code
Constructor
A special method that creates an object from a class
Overloading
Ability for different methods to have the same names but different number of parameters which therefore exhibit different behaviours
Base class
A class from which other classes are derived
Inheritance
The ability to take a base class and add further functionality specific to the inherited class