New course! Every coder should learn Generative AI!
Try a free lesson0
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?
1 Answer
+ 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.