CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 1999
    Posts
    18

    extends Object explictly specified



    Why is it I have seen some code (most notably in the Microsoft Visual j++ source book by Cross and Saganich) that has in a class defintiion extends Object explicitly defined when according to thinking in Java, all java classes implicitly extend Object anyway?


    -Brad

  2. #2
    Join Date
    May 1999
    Posts
    93

    Re: extends Object explictly specified



    There could be two reasons.


    1. The author probably have a strong C++ background and feel more comfortable

    always specifying the base class.


    2. They want to highlight the fact that the new class has a close relationship

    with the Object class and that it may actually be overriding some of the Object

    methods.


    I haven't read the book. This is just speculation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured