Search:

Type: Posts; User: kirannayana

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    1,316

    Re: Understanding Classes and Objects

    public void setAuthor(String authorName)
    {
    authorName = authorName;
    }

    here compiler gets ambiguity because of parameter of function and class variable having same name.
    public...
  2. Replies
    6
    Views
    1,316

    Re: Understanding Classes and Objects

    U had declared variables but didn't assigned the values yet.
    It is suggestion that u must know about "local variable and class variable " and u must know about "this" keyword in java it help in...
Results 1 to 2 of 2