Posts

Object-Oriented Programming

            O bject-Oriented Programming, also called OOP, is a high-level programming model  different from procedural and functional programming most developers learn and work it. This model of software programming focuses on data and objects rather than functions  and logic. 1] INHERITANCE: Inheritance is a concept that allows the creation of new classes from an existing one. The inherited class becomes a subclass or a child class of the parent or super class. There are several types of inheritance, Single inheritance Multiple inheritance Hierarchical inheritance Hybrid inheritance Multi-level inheritance A practical example of inheritance is the relationship between a child and it's parent. When a child is born, it inherits some genes from it's parent but it is also a distinct person with it's own unique traits. 2] ENCAPSULATION: Also called data hiding is an important aspect of OOP. This concept puts restrictions within a class to keep the...