Java classes comments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #46
    Originally posted by JosAH
    No need to apologize; I suffer from the same dexter-sapiens syndrome too now
    and then: my fingers start thinking for themselves and think they know better:
    I want to type "make", my fingers type "main", I want to type "do" and my
    fingers complete it as "double" etc. etc.

    Silly fingers,

    kill -9 register,

    Java ;-)
    And I've just moved from Vista to Fedora as well (Not that I'm complaining about the move of course).

    Comment

    • madhoriya22
      Contributor
      • Jul 2007
      • 251

      #47
      Originally posted by r035198x
      And I've just moved from Vista to Fedora as well (Not that I'm complaining about the move of course).
      hi r035198x/Jos,
      One question is still there to be answered....Wha t is contructors doing in abstract class if we cant create object of that.....sugges t me on that one....plzz

      Thanks and regard,
      madhoriya

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #48
        Originally posted by madhoriya22
        hi r035198x/Jos,
        One question is still there to be answered....Wha t is contructors doing in abstract class if we cant create object of that.....sugges t me on that one....plzz

        Thanks and regard,
        madhoriya
        You may not be able to create an instance from an abstract class, you may be
        very well able to instantiate an object from a concrete subclass. A class
        constructor always (implicitly) calls its superclass' constructor so an abstract
        class needs at least one constructor as well.

        kind regards,

        Jos

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #49
          Originally posted by madhoriya22
          hi r035198x/Jos,
          One question is still there to be answered....Wha t is contructors doing in abstract class if we cant create object of that.....sugges t me on that one....plzz

          Thanks and regard,
          madhoriya
          Remember that you can call a constructor in an immediate superclass using the super keyword. So basically a constructor in an abstract class is invoked from extending classes' constructors. Note that public constructors in abstract class are not needed since only extending classes can access them

          Comment

          • madhoriya22
            Contributor
            • Jul 2007
            • 251

            #50
            Originally posted by r035198x
            Remember that you can call a constructor in an immediate superclass using the super keyword. So basically a constructor in an abstract class is invoked from extending classes' constructors. Note that public constructors in abstract class are not needed since only extending classes can access them
            Thanks for ur suggestions.... ..but still I am trying to understand it......I vil catch u later... If I have another doubts.

            What happen to more discussions in free java classes.....eag erly waiting for that....

            Thanks and regards,
            madhoriya

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #51
              Originally posted by madhoriya22
              Thanks for ur suggestions.... ..but still I am trying to understand it......I vil catch u later... If I have another doubts.

              What happen to more discussions in free java classes.....eag erly waiting for that....

              Thanks and regards,
              madhoriya
              Yeah, maybe I'll add a few more things in there soon, or better still use delegation.

              Comment

              Working...