Search:

Type: Posts; User: Parranoia

Search: Search took 0.16 seconds.

  1. Replies
    4
    Views
    1,505

    Re: creating constructor

    The price would possibly instantiated upon creation of the constructor is what I would guess.
  2. Replies
    4
    Views
    1,505

    Re: creating constructor

    You code them essentially just like a method; however you have no return type and the "method name" is the class name.
    So in your case it would simply be


    public Machine(//parameters go here) {...
Results 1 to 2 of 2