If you want a method to return a value sometimes and not return a value sometimes then there is a possibility that you have a design flaw. On the other hand this might make sense. Take a look at the...
Type: Posts; User: Junky
If you want a method to return a value sometimes and not return a value sometimes then there is a possibility that you have a design flaw. On the other hand this might make sense. Take a look at the...
Congratulations, you know how to use bold. But it does not answer my question. The code you bolded is what is returned when shapeNum EQUALS 2. I asked what will your code return when shapeNum DOES...
What will your areaCircle method return if shapeNum != 2?