Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Posts
    138

    Unanswered: Can a subclass directly access private members of its superclass?

    Can a subclass directly access private members of its superclass?

  2. #2
    Join Date
    Mar 2004
    Posts
    16

    Re: Can a subclass directly access private members of its superclass?

    Originally posted by valexena
    Can a subclass directly access private members of its superclass?
    no, if private they're not inherited... to declare a variable with private access but inheritable use 'protected' modifier!

Posting Permissions

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