7 Replies Latest reply: Sep 17, 2007 5:10 AM by Herko_ter_Horst RSS

    Accessing a Sub class variable in a Super Class

      Hi ,

      Is there any easiest way to access a Subclass Variable in a Super Class.

      Class Super1{

      Class sub extends Super1
      private String substring1;

      In my application the 'substring1' values is not null .But all fields in Super1 class are null .

      How can i access the value of the Subclass Variable in Super class .