a type of programming which uses
objects and classes its functioning.
based on real world entities like
inheritance, polymorphism, data hiding, etc.
It aims at binding together data and function work on these data sets into a single
entity to restrict their usage.
Object Oriented Programming (OOP)
What are the examples OOP languages?
JavaScript, C++, Java and Python.
What UML stands for?
Unified Modeling Language
It represents a unification of the concepts and notations presented by the three amigos in their
respective books.
Unified Modeling Language (UML)
UML is comprised of two major components
Meta-model and Notation
A standard data representation.
Is a description of UML in UML.
It describes the objects, attributes, and relationships necessary to represent the concepts of UML within a software application.
The Meta-model
It is rich and full bodied.
It is comprised of two major subdivisions.
For modeling the static elements of a design such as classes, attributes, and relationships.
For modeling the dynamic elements of a design such as objects, messages, and finite state machines.
Notation
Two main aspects of object-oriented programming.
Classes and Objects
A data-type that has its own members i.e.
data members and member functions.
It is the blueprint for an object in object oriented
programming language.
It is the basic building block of object oriented
programming in C++.
Is a user-defined data type
Class
Class:
Fruits
Objects:
Apple
Banana
Orange
An object is an instance of a class.
It is an entity with characteristics and behavior that are used in the object oriented programming.
An object is the entity that is created to allocate
memory.
Object
Are functions that belongs to the class.
Methods
Two ways to define functions that belongs to a class?
Inside class definition
Outside class definition
It is the concept of wrapping of data and functions together as a single unit.
Encapsulation
Refers to the act of representing essential features without including the back ground details or explanation.
Defined as a list of attributes such as size,weight, cost and functions to operate on these attributes.
Data Abstraction
It is the capability of a class to inherit or derive properties or characteristics from other class.
It allows reusability i.e. using a method defined in another class.
Inheritance
The class that derives properties from other class.
Child Class or Subclass
The class from which the properties are inherited.
Base Class or Parent Class
It comes from the Greek words “poly” and “morphism”. “poly” means many and “morphism” means form i.e.. many forms.
It means the ability to take more than one form.
Polymorphism
Functions with the same name that can do multiple types based on some condition.
Function Overloading
In operator overloading, function and operator can have multiple behavior in different instances of usage.
Operator Overloading