JAVA WOKIS Eme

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

JAVA

OBJECT
ORIENTED
PROGRAMMING
PREPARED AND PRESENTED BY:
MEDRANO, CRIS IVAN
BASCUGUIN, JAY DEE KURSTEN
JAVA
Java is a programming language and computing
platform first released by Sun Microsystems in
1995. It has evolved from humble beginnings to
power a large share of today’s digital world, by
providing the reliable platform upon which
many services and applications are built. New,
innovative products and digital services
designed for the future continue to rely on Java,
as well.
JAVA
It is a high-level, class-based, object-oriented programming language
that is designed to have as few implementation dependencies as
possible. It is a general-purpose programming language intended to
let programmers write once, run anywhere (WORA), meaning that
compiled Java code can run on all platforms that support Java without
the need to recompile. Java applications are typically compiled to
bytecode that can run on any Java virtual machine (JVM) regardless
of the underlying computer architecture.

The syntax of Java is similar to C and C++, but has fewer low-level
facilities than either of them. The Java runtime provides dynamic
capabilities (such as reflection and runtime code modification) that
are typically not available in traditional compiled languages. As of
2019, Java was one of the most popular programming languages in
use according to GitHub, particularly for client–server web
applications, with a reported 9 million developers.
OBJECT ORIENTED PROGRAMMING
It focuses on implementing real world objects using classes to
create variations of objects, that has attributes and purpose. It
help us create much flexible and efficient code than procedural
programming

CLASSES : created by the programmer, it will act as a blueprint


of an object that you want to implement in your program. It
contain all the attributes and methods that your desired object
should have.
OBJECTS: created by instantiating a class. It is anything that
has an attribute and a purpose.
Example: person, furniture and food
CLASSES : created by the programmer, it will act as a
blueprint of an object that you want to implement in
your program. It contain all the attributes and methods
that your desired object should have.
OBJECTS: created by instantiating a class. It is anything
that has an attribute and a purpose.
Example: person, furniture and food

ATTRIBUTES: these are the global variables declared


inside the class of our object.
CONSTRUCTORS
Is the method called when you instantiate a class / create an
object.
It is used to initialized the attributes of an object or run a block
code when an object is created.
THIS keyword : refers to the class itself. It enables you to access
global variables inside the class if you have the same variable
names in a parameter.
OBJECT METHODS
are considered as the object's purpose
Example: Introduce
PRINCIPLES OF OOP IN JAVA
ENCAPSULATION : an OOP technique used to hide data
from data access

INHERITANCE : an OOP technique used to inherit attributes and


methods from one class to another
SUPERCLASS (parent) class where we will inherit the attributes
and methods
SUBCLASS (children) class who will inherit the attributes and
methods
PRINCIPLES OF OOP IN JAVA
POLYMORPHISM : poly means "many'' and morph means ''take
different forms''. It is an OOP technique that utilizes inheritance to
create one class and make several classes inherit from that class
so that it can take many forms.

ABSTRACTION : an OOP technique that hides certain details and


only shows the important information. It can be achieved in 2
ways: abstract classes and interfaces.
THANK YOU!

You might also like