Solved

private and public classes

Posted on 2000-04-26
2
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

636 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