|
-
Are private members in a superclass members of a subclass?
Are private members of a superclass also members of a derived subclass?
Obviously the subclass cannot access the associated superclass's private
members.
If the private members of the superclass are also members of the subclass
then they are inherited from the superclass.
In C++ even though private members of a base class are members of the derived
class, they are not accessible to the members or friends of the derived class.
Does this hold true with Java as well?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks