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 :
could be simplified with, the use of 'with' as :Code:obj.get_data();
if(obj.check()) obj.rectify();
obj.display();
obj.reset();
I know that the introduction of such a keyword if it doesn't exist will cause scope prblms.Code:with obj{
get_data();
if(check()) rectify();
display();
reset();
}
But it seems really helpful in Java.
P.S. I Don't know Java very well;
neither have I programmed with it.
(^_^)!.