Re: Instant Chat System for 1000 simultaneous clients



RedGrittyBrick wrote:
Lew wrote:
RedGrittyBrick wrote:
The method is Thread() and the procedure to create 1000 of them is

That's not a method, that's a constructor.


Poetic license.

In that sense, yes, you are correct. After all, constructors are very method-like. In some ways.

Overrides, said my instructor,
are dangerous in a constructor,
if you call on the one
before the other is done,
you just might find that it f**ked 'er.

I had my poetic license revoked.

--
Lew
.



Relevant Pages

  • Re: Constructor inheritance
    ... >be desirable to over-ride a behavior of the super class that is not appropriate, ... initialisation of the base case, perhaps overrides, it, but never ... You get in deep doo do when you start letting constructors call ...
    (comp.lang.java.programmer)
  • Re: Ensuring a method is overridden
    ... I want to ensure that each subclass overrides a certain method. ... The only way I can think of to do this is to put code in the base class's constructors, and when the class being constructed is not the base class, check that getDeclaredMethod does not throw a NoSuchMethodException. ... Since the 'abstract' keyword works, and reflection is both messy and slow, eschew reflection. ... that's the first order of approximation.) ...
    (comp.lang.java.programmer)
  • Re: Ensuring a method is overridden
    ... I want to ensure that each subclass overrides a certain method. ... The only way I can think of to do this is to put code in the base class's constructors, and when the class being constructed is not the base class, check that getDeclaredMethod does not throw a NoSuchMethodException. ... Since the 'abstract' keyword works, and reflection is both messy and slow, eschew reflection. ...
    (comp.lang.java.programmer)