Author Topic: Java  (Read 2787 times)

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Java
« on: 2005-11-01, 09:28:45 PM »
Okay, to get back off-topic here.  I'm writing a Java program, and if anybody else here knows more about Java than I do, maybe they can help.

I've got a static class (don't want it to be instantiated) which seems to be working just fine.  However, whenever I run the Javadoc on it, it inserts a default constructer into the documentation.  Anybody know how would I go about forcing it to be a purely static class with no constructors (Like, for example, Java.lang.Math)?

And no, this isn't for an assignment.  If it were, I would've asked the prof first.
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Java
« Reply #1 on: 2005-11-02, 06:37:21 AM »
Have you tried creating a private default constructor?  I think public constructors exist by default unless you override with a private one -- at least that's the case with C# and/or VB.NET (I forget which), so it might be true for Java.

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Java
« Reply #2 on: 2005-11-02, 08:19:42 AM »
woiks like a chahm (to be said with a car-talk-guys accent, whatever that's called)
Edward Dassmesser