Time:01-13
CodePudding user response:
const can be used as function overloading conditions
Quote: refer to the second floor a white steamed bun response: const conditions can be used as function overloading Const object can only use const method, can is a const object is not can also use a const method
const conditions can be used as function overloading
Quote: refer to the third floor tianfuplayer response: Quote: refer to the second floor a white steamed bun response: const can be used as function overloading conditions Const object can only use const method, can is a const object is not can also use a const method Yes, non const object can call const method, can also call the const method, it's not conflict, followed cosnt method, shows that only through this method reads the members of the class variables, not to change
Quote: refer to the second floor a white steamed bun response: const can be used as function overloading conditions Const object can only use const method, can is a const object is not can also use a const method
Page link:https//www.codepudding.com/Backend/98350.html