Does C++ have a 'with' key word as in Java?
The 'with' key word is used to avoid repetition of object name ???
I Java, some thing like :
Code:
obj.get_data();
if(obj.check()) obj.rectify();
obj.display();
obj.reset();
could be simplified with, the use of 'with' as :
Code:
with obj{
  get_data();
  if(check()) rectify();
  display();
  reset();
}
I know that the introduction of such a keyword if it doesn't exist will cause scope prblms.
But it seems really helpful in Java.
P.S. I Don't know Java very well;
neither have I programmed with it.

(^_^)!
.