Q:

What would happen if we gave Screen a size member defined as follows? Fix any problems you identify

0

What would happen if we gave Screen a size member defined as follows? Fix any problems you identify.

pos Screen::size() const
{
 return height * width;
}

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The return type `pos` is a member `typedef` of class `Screen`, thus it needs the scope operator `Screen::pos`.

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now