Solved

private and public classes

Posted on 2000-04-26
2
234 Views
Last Modified: 2010-04-15
i had a discussion with a friend about private, protected and public classes. my question to anyone who can clarify this is i say that the declared items in the private part of a class may not be directly accessed outside the class and those in the public part are accessible outside of the class. please let me know if i am true in what i say to clarify this up between us. thanks!
0
Comment
Question by:beachbumm
2 Comments
 
LVL 16

Accepted Solution

by:
imladris earned 10 total points
ID: 2751599
You are completely true! That is precisely the point of public versus private. Public methods or variables can be used by other classes, private ones cannot.
0
 

Author Comment

by:beachbumm
ID: 2751633
thanks!!!!!!!!!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now