20 - further programming (pyhton files) Flashcards
programming paradigm
set of programming concepts
eg low level, imperative, object oriented, declarative
OOP
programming methodology that uses self contained objects containing programing statments and data that communicate with each other
class
defines the methods and data of a certain type of object
attributes
data items in a class
method
a programmed procedure which is defined as part of a class
encapsulation
process of putting data and methods together as a single unit, a class
object
an instance of a class that is self-contained and includes data and methods
property
data and methods within an object that perform a named action
instance
An occurrence of an object during the execution of a program
data hiding
technique which protects the integrity of an object by restricting access to the
data and methods within that object
__ makes attributes private in python so need getters to retrieve attributes
inheritance
process in which the methods and data from one class, a superclass or base class, are copied to another class - a derived class
polymorphism
feature of object-oriented programming that allows methods to be redefined for derived classes
overloading
feature of object-oriented programming that allows a method to be defined more than once in a class, so it can be used in different situations
containment
a relationship in which one class has a component that is of amnother class type
one class contained in another type
getter
a method that gets the value of a property