View RSS Feed

Recent Blogs Posts

  1. Referencing an Object's Fields

    by , 04-26-2012 at 06:08 PM
    Names are used to access the object fields. An unambiguous name shall be used.

    Simple name could be used for the field, within class. For instance, a statement could be added in Rectangle class, which will be priting the height & width.
    Java Code:
    System.out.println("Width and height are: " + width + ", " + height);
    In this case simple names are height & width.

    Code that is being present out of the objectís class may utilize ...