need help in anonymous class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gsreenathreddy
    New Member
    • Oct 2007
    • 40

    need help in anonymous class

    An anonymous class extending a class that has a nondefault
    constructor. I am not able to find the difference can any one explain about this.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by gsreenathreddy
    An anonymous class extending a class that has a nondefault
    constructor. I am not able to find the difference can any one explain about this.
    Difference between what and what?

    Comment

    • gsreenathreddy
      New Member
      • Oct 2007
      • 40

      #3
      Originally posted by r035198x
      Difference between what and what?
      difference between the normal anonymous class and a anonymous class which has construcor

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by gsreenathreddy
        difference between the normal anonymous class and a anonymous class which has construcor
        3 args constructor

        [CODE=java]new Person("title", "fullName", 2) {
        public void aMethod () {

        }
        };[/CODE]

        Default constructor
        [CODE=java]new Person() {
        public void aMethod () {

        }
        };[/CODE]

        I'm not sure I get your question though ...

        Comment

        Working...