I am a programmer C\C++starting with Java.
I stumbled upon this working syntax of Java code, which I understand what it does, but I cannot understand the syntax logic.
object x = new object
.SetContent(aaa)
.SetIcon(bbb)
.SetText(ccc);
I get the equivalent code C++:
object* x = new object;
x->SetContent(aaa);
x->SetIcon(bbb);
x->SetText(ccc);
Can someone explain me the logic of the Java syntax?
Is this something like a Visual Basic statement With?
PS Do not think that this is important, but the Java snippet is a program for Android.
source
share