Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Latest commit

 

History

History
26 lines (23 loc) · 1.36 KB

File metadata and controls

26 lines (23 loc) · 1.36 KB

OOP

  • Each object has a unique identity.

  • Each object can contain several other objects.

  • Each object can have a series of attributes.

  • Every object has a set of behaviors.

  • An object is an instance created from a class. The process of making this sample is called instantiation.

4 fundamental concepts of object oriented programming

  • Abstraction
    • When we talk about "animal", we are not referring to a specific animal. This is an abstract concept.
    • Abstraction occurs when a programmer hides irrelevant data about an object or class to reduce complexity.
  • Polymorphism
  • Inheritance
    • Is a mechanism that allows one class to inherit the properties of another class, in the same way that a child inherits certain properties from each of its parents.
  • Encapsulation
    • Means "putting one or more items in a physical or logical package." Encapsulation in object-oriented programming limits access to implementation details.
    • Is implemented by access specifiers. Access level attributes define the scope of class members.