Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #564
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news2.arglkargh.de!news.n-ix.net!news.belwue.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail |
|---|---|
| From | Lothar Kimmeringer <news200709@kimmeringer.de> |
| Newsgroups | comp.lang.java.help |
| Subject | Re: Instantiate an abstract class |
| Date | Thu, 7 Apr 2011 01:01:31 +0200 |
| Organization | Organization?! Only chaos here! |
| Lines | 26 |
| Message-ID | <lb9j4psn5s9j.dlg@kimmeringer.de> (permalink) |
| References | <61c7300d-6011-4639-a5f1-5cd4c58906fa@r4g2000prm.googlegroups.com> <c1u7degm55pf$.dlg@kimmeringer.de> <ini5i3$9ci$1@news.albasani.net> |
| Reply-To | news@kimmeringer.de |
| NNTP-Posting-Host | mnch-4d044b5f.pool.mediaways.net |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | 7bit |
| X-Trace | online.de 1302130891 6128 77.4.75.95 (6 Apr 2011 23:01:31 GMT) |
| X-Complaints-To | abuse@einsundeins.com |
| NNTP-Posting-Date | Wed, 6 Apr 2011 23:01:31 +0000 (UTC) |
| User-Agent | 40tude_Dialog/2.0.15.1de |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.help:564 |
Show key headers only | View raw
Lew wrote:
> On 04/06/2011 12:26 PM, Lothar Kimmeringer wrote:
>> getClass().newInstance();
>
> You left out the object on which to call 'getClass()'. How do you get an
> instance on which to call the method?
I was quoting
>>> AFoo a = new (this).getClass();
so an educated guess would be "this".
> What if the constructor is not parameterless?
I assumed that there aren't any parameters, since there aren't
any in the text I quoted:
>>> AFoo a = new (this).getClass();
Regards, Lothar
--
Lothar Kimmeringer E-Mail: spamfang@kimmeringer.de
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong
questions!
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Instantiate an abstract class Rob McDonald <rob.a.mcdonald@gmail.com> - 2011-04-05 14:14 -0700
Re: Instantiate an abstract class Patricia Shanahan <pats@acm.org> - 2011-04-05 14:37 -0700
Re: Instantiate an abstract class Rob McDonald <rob.a.mcdonald@gmail.com> - 2011-04-05 14:49 -0700
Re: Instantiate an abstract class Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-04-05 17:48 -0400
Re: Instantiate an abstract class Rob McDonald <rob.a.mcdonald@gmail.com> - 2011-04-05 14:54 -0700
Re: Instantiate an abstract class Patricia Shanahan <pats@acm.org> - 2011-04-05 15:09 -0700
Re: Instantiate an abstract class Lew <noone@lewscanon.com> - 2011-04-06 12:43 -0400
Re: Instantiate an abstract class "John B. Matthews" <nospam@nospam.invalid> - 2011-04-06 22:07 -0400
Re: Instantiate an abstract class Roedy Green <see_website@mindprod.com.invalid> - 2011-04-05 19:02 -0700
Re: Instantiate an abstract class Roedy Green <see_website@mindprod.com.invalid> - 2011-04-05 19:42 -0700
Re: Instantiate an abstract class Lothar Kimmeringer <news200709@kimmeringer.de> - 2011-04-06 18:26 +0200
Re: Instantiate an abstract class Lew <noone@lewscanon.com> - 2011-04-06 12:49 -0400
Re: Instantiate an abstract class Patricia Shanahan <pats@acm.org> - 2011-04-06 10:09 -0700
Re: Instantiate an abstract class Lothar Kimmeringer <news200709@kimmeringer.de> - 2011-04-07 01:01 +0200
Re: Instantiate an abstract class Wojtek <nowhere@a.com> - 2011-04-06 12:41 -0700
csiph-web