Re: what is difference between Class variables and Instance variables?
- From: "Matt Humphrey" <matth@xxxxxxxxxxxxxx>
- Date: Sun, 14 Aug 2005 09:21:17 -0400
<rahul8143@xxxxxxxxx> wrote in message
news:1124014399.664458.218080@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> hello,
> what is difference between Class variables and Instance variables?
>
Instance variables belong to the object instance. They're the fields of the
object. Class variables belong to the class as a whole--they're static
variables. I recommend Roedy's definitions here:
http://mindprod.com/jgloss/instancevariable.html or if you're up to it the
JLS definition here
http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html#28536
Cheers,
Matt Humphrey matth@xxxxxxxxxxxxxx http://www.iviz.com/
.
- References:
- Prev by Date: Re: Unchecked invocation sort
- Next by Date: Re: Turning tables on interviewer
- Previous by thread: Re: what is difference between Class variables and Instance variables?
- Next by thread: Re: what is difference between Class variables and Instance variables?
- Index(es):
Relevant Pages
|