You should mind; the quality of your learning is important.Mark Roberge wrote:never mind
What did that say? How did it differ from what you wrote? What do you think I thought was wrong with lines 7‑9?I found the print details section.
You would only write a1.mass if you are ignoring the principle of hiding implementation details. That might be correct Java® syntax, but it is poor object‑orientation.Mark Roberge wrote:OK, why is it in Java they us a1.mass for example, to make a variable?
If you go round thinking that different languages do things the same way as each other, you can get into no end of confusion. The same applies to natural languages; for example sympathique (French), simpatico (Italian), and sympatisch (German) mean more or less the same thing. But it is completely different from the English word sympathetic's meaning. Java® doesn't use a $ operator, and it doesn't use an include folder. But it has other ways to include outside classes. Please explain what you meant by, “in line”. I suspect there is something about packages and modules you haven't learnt yet.I have studied PHP . . .
Mark Roberge wrote:I am most familiar with PHP. Classes in PHP can be placed in an include file and called into the program with an include or require. And yes I am referring to top to bottom.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |