Object-oriented programming concepts Flashcards
What is object-oriented programming?
Object-oriented programming can be described as being organised in a way that reflects the real world
What are the advantages of Object-oriented programming?
- programs are written in modules, which means that they can be easily amended
- It is also easier to add new functionality to a program by adding new modules
- Allows teams to work on self-contained parts of a large program
- Objects can inherit attributes and behavior
- Reduces the chance that changing code will cause loads of bugs
- Code can be reused easily
What is modular design?
A method of system design that breaks a whole system down into smaller units
What is encapsulation?
The concept of putting properties, methods and data in one object
What is a method?
The object or routines contained within a class
What are properties?
The defining features of an object or class in terms of it’s data
In computing what does a class do?
Defines the properties and methods of a group of similar objects
What is an object?
a specific instance of a class
What is inheritance?
The concept that properties and methods in one class can be shared with a subclass
Define class diagrams
A standard method of representing classes, their properties and methods and relationships between classes. There are different ways of representing the relationships between the classes
Define installation
The process of creating an object from a class
Define polymorphisim
The ability of different types of data to be manipulated with the same method
Define overriding
Where a method described in the subclass takes precedence over a method with the same name in the base class
What is aggregation?
A method of creating objects that contain existing objects, based on the way the objects are related
What is composition aggregation?
A method of creating objects that contain existing objects, and will cease to exist if the containing object is destroyed