Home > Back-end >  How to use a member function overloading?
How to use a member function overloading?

Time:04-30

The HTML code is as follows, how to invoke a member function with the same in a member function?
 
Class A
{
Public:
Void print (const STD: : string & amp; STR)
{
STD: : cout}
Void the print ()
{
How//in the function calling print (const STD: : string&)
}

};

CodePudding user response:

A a;
Amy polumbo rint (" 123 ");//printf (string);
Amy polumbo rint ();//print ();
According to the matching parameters,

CodePudding user response:

A direct line, the parameters,

CodePudding user response:

refer to the second floor guest 灬 response:
direct line, the parameters,

Is not the topic, is to let in the print () calling print (STD: : string).

CodePudding user response:

refer to the second floor guest 灬 response:
direct line, the parameters,

Is not the topic, is to let in the print () calling print (STD: : string).

CodePudding user response:

reference 4 floor Marcelxx response:
Quote: refer to the second floor guest 灬 response:
direct line, the parameters,

Is not the topic, is to let in the print () calling print (STD: : string).

Not the lines?
Void the print () {
This - & gt; Print (" foo ");
}
  • Related