Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Programmer > class/getClass(...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 52639 of 55513
Post > Topic >>

class/getClass()

by Dennis <ml3p7@[EMAIL PROTECTED] > May 10, 2008 at 07:47 PM

In class Object, getClass() returns a Class object representing
whatever object the method was called on.  In something like:

initialize(UserContext.class);

protected void initialize (Class cls){
         initializeAtributes(cls);
         initializeDomains(cls);
}

something similar appears to be happening with  _class_.  What is this
and where is _class_ defined?  It looks like UserContext, or something
it's extending, has an attribute named _class_, but I don't see it
anywhere.  Also, MyEclipse highlights this along with other java
keywords.  I've poked around the language specification but couldn't
find anything about it.

Someone embarrass me and tell me where it is in the spec.  Please.

Thanks.
 




 7 Posts in Topic:
class/getClass()
Dennis <ml3p7@[EMAIL P  2008-05-10 19:47:17 
Re: class/getClass()
=?ISO-8859-1?Q?Arne_Vajh=  2008-05-10 22:59:36 
Re: class/getClass()
Roedy Green <see_websi  2008-05-11 03:48:50 
Re: class/getClass()
Joshua Cranmer <Pidgeo  2008-05-11 13:50:00 
Re: class/getClass()
Daniel Pitts <newsgrou  2008-05-11 08:31:06 
Re: class/getClass()
Mark Space <markspace@  2008-05-11 09:33:54 
Re: class/getClass()
Lew <lew@[EMAIL PROTEC  2008-05-11 13:15:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 18:37:22 CST 2008.