dial number
inform receiver
if receiver accepts
inform sender to initiate
else
inform sender to call later
Binding
Terminology
1 Refernce Variable
2 Reference which is actually an address
3 referred object
4 data type of reference variable
5 data type of referred object
What:
Binding is the association of reference with the reference variable
e.g.
class A{} // class definition
A refA (Reference variable A) = new A(); (Referred Object )
//refA is a reference to an object of class A
class B extends A{} //class definition
B refB = new B();
//refB is a reference to an object of class B
in the above code snippets, refA and refB are reference variables which are associated with their respective object in the memory.
the data type of reference variable and reference to an object must match
e.g. refA has a data type A and it contains a variable of type A (a class is a user defined data type)
===
All of the above is based on the concept called
Early Binding
What:
the reference variable and reference are both of the same data type.
inform receiver
if receiver accepts
inform sender to initiate
else
inform sender to call later
Binding
Terminology
1 Refernce Variable
2 Reference which is actually an address
3 referred object
4 data type of reference variable
5 data type of referred object
What:
Binding is the association of reference with the reference variable
e.g.
class A{} // class definition
A refA (Reference variable A) = new A(); (Referred Object )
//refA is a reference to an object of class A
class B extends A{} //class definition
B refB = new B();
//refB is a reference to an object of class B
in the above code snippets, refA and refB are reference variables which are associated with their respective object in the memory.
the data type of reference variable and reference to an object must match
e.g. refA has a data type A and it contains a variable of type A (a class is a user defined data type)
===
All of the above is based on the concept called
Early Binding
What:
the reference variable and reference are both of the same data type.
No comments:
Post a Comment