Results 1 to 24 of 24

Thread: Oop [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004

    Oop [RESOLVED]

    Say that i had two classes, A and B. Now B is structurly the same to A and a lot but not all of A's functionality is the same for B.

    This would make B very conducive to be publically inherited from A. The problem is that not all of A's functionality (a few members but none of the operators) should be included in B. Should B be pubically inherited from A?

    Furthermore, if we should inherit, would it be a good strategy to make all members that should be inherited into A declared as private in B?
    Last edited by Darkwraith; Jun 16th, 2004 at 03:32 PM.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

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