Object Oriented Programming - Key Terms
Object-Oriented Programming - involves solutions being constructed by means of objects that interact with each other. Using objects means programs can be broken down into parts.
Classes - templates used in OOP to construct objects.
Attributes - variables associated with it.
Methods - subroutines that form the actions an object carries out.
Instantiation - The creation of objects is called ‘instantiation’. When creating an object we create an instance of the class.
Inheritance - where a class retains the methods and attributes of its parent class as well as having its own. Means one class can be coded and used multiple times for similar objects.
Encapsulation - is the process of keeping objects attributes private so they can only be accessed and changed via public methods. Means object can only behave in expected ways, no unforeseen circumstances.
Polymorphism - means that objects of different types can be treated in the same way.
Classes - templates used in OOP to construct objects.
Attributes - variables associated with it.
Methods - subroutines that form the actions an object carries out.
Instantiation - The creation of objects is called ‘instantiation’. When creating an object we create an instance of the class.
Inheritance - where a class retains the methods and attributes of its parent class as well as having its own. Means one class can be coded and used multiple times for similar objects.
Encapsulation - is the process of keeping objects attributes private so they can only be accessed and changed via public methods. Means object can only behave in expected ways, no unforeseen circumstances.
Polymorphism - means that objects of different types can be treated in the same way.
Comments
Post a Comment