the return type of a Member function cannot be of class data type is it true? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

the return type of a Member function cannot be of class data type is it true?

the return type of a Member function cannot be of class data type is it true?

25th Feb 2017, 12:56 PM
Srikanth Srinivasan
Srikanth Srinivasan - avatar
1 Resposta
+ 1
false. it can be. lets say you have a money object. if you wanted to add two money objects together. that would have to return a money object. hope this helps.
26th Feb 2017, 5:03 AM
Michael Szczepanski
Michael Szczepanski - avatar