Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    1,461

    Re: 'new' instantiating command ??

    Consider the three example classes below, which I will use to answer your question:

    public class Value {
    private int value;

    public Value(int val) {
    value = val;
    }

    public int...
  2. Replies
    9
    Views
    1,461

    Re: 'new' instantiating command ??

    On the left side, you are creating a variable, named object_name, with the type class_name. On the right side, you are initializing a new class_name object. This is an important distinction.
    The...
Results 1 to 2 of 2