View RSS Feed

Recent Blogs Posts

  1. Calling an Object's Methods

    by , 04-26-2012 at 05:09 PM
    Object reference can be used for invoking the object method. Simple names of method are appended to the object reference along with (.) dot operator. Within enclosing parentheses arguments are provided to the method. If any arguments are not required by the method empty parentheses shall be used.
    Java Code:
    objectReference.methodName(argumentList);
    or
    objectReference.methodName();
    Two methods are linked to Rectangle class: getArea() for the computation of the rectangular ...
    Categories
    Tutorial