Object-oriented Programming (OOP)

OOP: Encapsulation, Inheritance, Polymorphism, Composition Object-oriented Programming (OOP) provides the most feature-rich, maintainable, feature-rich way of programming applications by levering the following features. (use table to link to each article listed above). Please see my other Web articles. Object-Oriented Programming Class Design Class Inheritance Class Relationships Encapsulation Polymorphism OOP: UML

OOP: Encapsulation

Leveraging Encapsulation to Protecting Data & Behavior As demonstrated in my Inheritance article, I designed an Employee class which serves as a parent class for the Supervisor class. As you can see, the Employee class contains data and behaviors common to all types of employees, which the Supervisor class reuses in its objects. Code reuse…

OOP: Class Inheritance

Leveraging Inheritance for Code-Reuse & Maintainability As demonstrated by my Object-Oriented Programming (OOP) article, in addition to Encapsulation, Polymorphism (link), and Composition (link), OOP provides a powerful mechanism for reusing code and easier maintainability by allowing common class attributes and behaviors to be defined within a parent class, then inherited by one or more child…

OOP: Class Relationships

Modeling Real-World Objects through Relationship As demonstrated by my Object-Oriented Programming (OOP) articles, OOP provide several mechanisms for code reuse, such as class inheritance. These mechanisms work by relationships which may exist between classes. Is-A Relationship (Inheritance) Inheritance demonstrates the first type of relationship – is-a, where one class (Supervisor) “is-a” type of another class…

OOP: Class Design

Using Object-oriented Programming (OOP) to Design Robust Classes At the beginning of a software project, beginning by documenting in story-like form, the purpose for the project or what business problem are users trying to solve. List all users of the system and for each, what actions they require to complete their individual tasks to accomplish…

OOP: UML

Using UML when describing application design. The Unified Modeling Language is a powerful tool for designing application and describing its behavior, architecture, and implementation. In this article I will illustrate the most basic aspects of UML when modeling classes. Classes represent the most fundamental aspect of objects within an application. They serve as a template…