Flashcards
POO concepts
Cards in this deck (8)
- 1Types of Design PatternsBehavioral
Creational and
Structural - 2EncapsulationProtecting variables, functions from outside of class in order to keep data integrity
- 3Class and ObjectA class is the blueprint from which individual objects are created.
An object is an instance of a class - 4InheritanceAllows classes to inherit commonly used state and behavior from other classes
- 5PolymorphismBiologically speaking its an organism or species can have many different forms or stages
Programmitacally is how subclasses of a class can define their own unique behaviors and yet share some of the same functionality of the parent class - 6What is the difference between Association, Aggregation and Composition?Association - I have a relationship with an object. Foo uses Bar
Composition - I own an object and I am responsible for its lifetime, when Foo dies, so does Bar
Aggregation - I have an object which I've borrowed from someone else. When Foo dies, Bar may live on. - 7Define S.O.L.I.DSingle responsibility
Open-closed
Liskov substitution
Interface segregation
and Dependency inversion - 8Dependency InjectionMeans giving an object its instance variables
(such as constructor injection or setter injection)
Information
- Description
- Flashcards on POO concepts, created by dandev on 28/07/2015.
- Created by
- dandev
- Views
- 2
- Tags
- Rating