Do you know where your variables are? | |
PerlMonks |
Re: Re: Tutorial: Introduction to Object-Oriented Programmingby chromatic (Archbishop) |
on Dec 10, 2002 at 17:36 UTC ( [id://218848]=note: print w/replies, xml ) | Need Help?? |
You're right. Java has primitives that aren't objects. It does provide ways to promote primitives to real objects, though. For example, if you have an integer (primitive, doesn't really receive messages), you can promote it to an Integer (does receive messages). There's a little handwaving in here, because you can implement even primitive math in terms of messages.
In Section
Meditations
|
|