Oop Report
Oop Report
University of garmian.
Stage 2
IT department.
Supervisor: MR.salar.
Report about: objects in java.
Object in Java
Java is a powerful object-oriented programming language that consists
of objects and classes. The objects make it easier to map the real-life
entities while coding. The objects will be used all the time while
programming in java. The objects in java are easy to define and use. It is
necessary to understand Classes and Objects because everything in an
object-oriented programming language like Java is based upon them.
Syntax:
ClassName objectName;
Name = new ClassName();
location, and the address of the memory location will not be available to
the user.
An object will have its type associated with it. Every object will have a
An object will also have two things state and behavior declared in it.
These things are declared in class itself. The state will define attributes,
methods. These methods are nothing but are like the functions which
are declared in a class. The methods are again specific to the class in
methods are like behavior in the real world. For example, the mobile will
perform the action of calling or dialing. Calling action is nothing but the
using the methods. The methods are an easy way to combine and
methods can also access the data members defined in the class. we can
perform the actions on the data members in a class. We can define any
object name.
We can easily remove or replace the object being used depending upon
the requirement.
Reference: