If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > Can a subclass directly access private members of its superclass?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-04, 14:32
valexena valexena is offline
Registered User
 
Join Date: Oct 2003
Posts: 138
Can a subclass directly access private members of its superclass?

Can a subclass directly access private members of its superclass?
Reply With Quote
  #2 (permalink)  
Old 03-25-04, 10:49
danyver danyver is offline
Registered User
 
Join Date: Mar 2004
Posts: 16
Re: Can a subclass directly access private members of its superclass?

Quote:
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!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On