Posts

Showing posts from November, 2022

Getting Started with Object Oriented Programming

When getting started with Object Oriented Programming it is important to familiarize yourself with the four major principles of OOP and the concepts.  Understanding the principles and concepts of OOP will assist you during the process of writing and developing code.  First the four major principles of OOP are encapsulation, abstraction, inheritance, and polymorphism. Encapsulation is hiding daya implementation by restricting access.  This is when an object can maintain its state private within a class. Abstraction and encapsulation are closely tied together because data abstraction is the the development of classes.  Abstraction is used to manage complexity.  Abstraction can be used to decompose complex systems into smaller components making them more manageable.  Abstraction also makes it possible for objects to reveal operations relevant for other objects. Inheritance allows you to inherit functionality from another class, called the super class or base class.  The most useful fea