Flashcards
Object Oriented Programming
Cards in this deck (10)
- 1Object Oriented Programming OOPA program consists of objects.
Each object has its own data(attributes)
and operations/functions on that data(methods).
Objects interact with one another.
All processing is done by objects. - 2A classIs a blueprint for an object.
Defines attributes and methods which has the common characteristics and behaviours of objects. - 3EncapsulationAttributes and methods are wrapped into a single entity. (So basically attributes and methods are stored in a super class/ parent class instead of having it in every object )
- 4Information hidingAn object's attributes are hidden(private).
Its attributes are accessed and changed only through the object's methods.
Methods are required to set(setters) and retrieve(getters) an object's attributes. - 5InheritanceSub-classes uses attributes and methods of its superclass
- 6PolymorphismImplemented through overriding superclass methods
- 7Association - CompositionIf the container destroyed, objects remain
- 8Association - AggregatingIf the container destroyed, objects is destroyed as well
- 9Interface1. A collection of methods with no implementation(no result).
2. So it is a set of public method.
3. Reduce implementation specifics and made code more reusable - 10Advantage of OOP1. Extensive planning so better design
2. Source codes are written and maintained independently to other subjects.
3. Programmers can use exists object without knowing how it implemented
Information
- Description
- GCSE Computing Flashcards on Object Oriented Programming, created by Ho Ho on 06/06/2019.
- Created by
- Ho Ho
- Views
- 0
- Rating