Answer the question
In order to leave comments, you need to log in
What is the name of the parameter that comes after the method?
For example, a certain method in a class:
void dosmth(uint8_t value) MYPARAM{
}
Answer the question
In order to leave comments, you need to log in
This stems from the requirement of the language and the compiler, you can write a function inside a class:
void PrintClassName(const ClassName& cl) {
cout << cl.Get() << endl;
}
void PrintClassName(const ClassName& cl) const {
cout << cl.Get() << endl;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question