Object
defining and creation:
We can define the object is the procedure of loading the
contents of hard disk to the RAM dynamically at run time is done by creating an
object.
Creation
of object is done by using ‘new’ operator. it is a keyword in java. an
important responsibility of the new operator
I to transfer the contents of .class file from the hard disk into the
RAM.
Example:
Class
A
{
Int
i=1, j=2;
Public
static void main (String args[])
{
A
a=new A ();
a.i=10;
a.j=20;
}
}
No comments:
Post a Comment