View RSS Feed

Recent Blogs Posts

  1. Class Variables

    by , 04-26-2012 at 05:44 PM
    When objects are made from the similar class blue print it means that every one of them consist of their distinct instance variables copies. In Bicycle class case, instance variables are speed, gear and cadence. E very Bicycle object consist of values of its own, for these variables which are present at different locations of memory.

    Sometimes one wishes to possess variables which are common, to all objects. This is usually done by the static modifier. Fields which consist of static ...