PPT Slide
Assignment with References to Objects:
Two logical operations available:
1. The operator = (assignment)
- It assigns references to objects, i.e., it manipulates the pointers.
- Used in the form: str1 = str2
- It copies the object itself.
- Used in the form: str1 = str2.clone( );
- Not available for all types (requires cloneable interface; interfaces to be discussed later).