Flashcards
Object-Oriented Programing
Cards in this deck (10)
- 1What is OOP.It is a type of computer programming in which programmers define not only the data type of a data structure, but also the types of operations (functions) that can be applied to the data structure.
- 2ClassBlueprint for an object.
Define attributes and methods of an object.
(Basically a template for an object along with its action such as moving , speaking..) - 3EncapsulationOne of the fundamental principle for OOP.
This concept is also often used to hide the internal representation, or state, of an object from the outside OR separating program into modules. - 4InstantiationCreating an object from class blueprint
- 53 basic object-oriented programming principles-Encapsulation
-Inheritance
-Interface - 6InheritanceThe ability to derive new classes from existing classes. A derived class (or "subclass") inherits the instance variables and methods of the "base class", and may add new instance variables and methods.
- 7PolymorphismA method used in the base class can behave differently in each sub class. A method with the same identifier inherited from the base class can be altered and overrided in the sub class.
- 8Association-Composition
-Aggregation - 9Composition vs InheritanceComposition is less rigid than inheritance
- 10Interface
Information
- Description
- Flashcards on Object-Oriented Programing, created by Wei Cheng Chang on 06/06/2019.
- Created by
- Wei Cheng Chang
- Views
- 0
- Rating