.
The class Dialog {
}
Dialog& Dialog: : show () {
.
}
And this:
* Dialog: the Dialog: test () {
.
}
In C, until new to C + +
This class name & amp; Function name: : name, what is written?
What is the reference method? What is want to baidu this specific syntax,
To solve the thank you
CodePudding user response:
The Dialog in front of the * with Dialog& Is the return type, a pointer and a reference (don't with address-of)Behind is the name of the class: : () member function name is the fixed writing
Two the same because the return value is an object of this class, the return value may also be other classes of objects, of course also can return an int, float the basic types of
Int Dialog: : test () {} is right
CodePudding user response:
Thank you