identifier expected error

Discussion in 'Java' started by manoj212077, Sep 6, 2009.

  1. manoj212077

    manoj212077

    Joined:
    Sep 6, 2009
    Messages:
    5
    i have error in line no.3 and 7 ....
    class A {
    int i;
    i = 8;
    }
    class B extends A{
    int i;
    i = 76;
    void add(int a) {
    int i;
    i=a;

    System.out.println("value of

    i"+super.i);
    System.out.println("value of

    i"+this.i);
    System.out.println("vaue of i="+
    i);
    }
    }
     
    manoj212077, Sep 6, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. barry

    expected identifier error

    barry, Dec 24, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    5,821
    barry
    Dec 25, 2005
  2. Kobu
    Replies:
    7
    Views:
    485
  3. aarthi28@gmail.com
    Replies:
    2
    Views:
    1,828
    chris_doran@postmaster.co.uk
    Feb 26, 2007
  4. babakandme@yahoo.com
    Replies:
    2
    Views:
    937
    Owen Jacobson
    Dec 11, 2007
  5. S_K
    Replies:
    0
    Views:
    685
Loading...

Share This Page