the efficiency of algorithms by representing their growth rate as the input size becomes very large. The main notations are Big O (upper bound/worst-case), Omega (lower bound/best-case), and Theta (tight bound/average-case)
Size: 684.42 KB
Language: en
Added: Oct 15, 2025
Slides: 13 pages
Slide Content
Any real world entity which can have some
characteristics or which can perform some
tasks is called as Object.
Example:
A class is a group of objects having similar
properties and behavior.
We call it a blueprint of how the object should
be represented. Mainly a class would consist of
a name, attributes, and operations [1].
Example:
Class
Object
Object-
oriented Programming is a way to construct a
programme using classes or artifacts. Object-
oriented Programming.
It simplifies the development and maintenance
of software through certain principles:
Object
Class
Inheritance
Polymorphism
Abstraction
Encapsulation
Object Oriented features [2]
When one object acquires all the properties
and behaviors of a parent object, it is known as
inheritance. It provides code reusability. It is
used to achieve runtime polymorphism.
It is known as polymorphism if one job is done in various ways.
For example , in order to persuade the client differently, draw s
omething such as the form, triangle, rectangle, etc.
Hiding internal details and showing functionality is known as
abstraction. For example phone call, we don't know the internal
processing.
In Java, we use abstract class and interface to achieve
abstraction.
The encapsulation is defined as the joining (or wrapping) of cod
e and data together into one structure. A capsule is filled,
for example, with various medicines. The example of encapsulat
ion is a java class.
Java bean is the fully encapsulated class because every data me
mber here is private.
Encapsulation in java [3]
[1] Michael R Blaha, James R Rambaugh, “Object
Oriented Design and Modeling with UML” , Pearson,
2005
[2] Java OOPs Concepts, 2018,
https://www.javatpoint.com/java-oops-concepts.
[3] Encapsulation in Java with Realtime Example and
its Advantages, 2020
https://data-flair.training/blogs/encapsulation-in-java