answersLogoWhite

0

Public class variables and methods are those that can be called at any stage in the program's execution. These members are deemed "public" in that they are accessible outside of the class. On the other hand, private variables and methods can only be accessed through the class in which they are defined. These members are deemed "private" in that they are hidden by the client and can only be called in their respective classes.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

The difference between private and public administration?

Public is open, private is closed.


What is the important difference between public and private administration?

Public is the opposite of private.


What is the difference between public and private sectors aims and objectives?

private anf public


What are the difference between public and private inheritance in c plus plus?

Public member, fields, methods etc can be accessed from outside of the class. While private members etc can accessed only within the class even "child" classes do not have access to private members, fields etc.


What are the Differences between public nuisance and private nuisance?

Well ask yourself what the difference between "public" and "private" is. This isn't rocket science!


Difference between public management and private management?

The main distinction between the private sector and the public sector is principally there ownership. Private sectors are owned by shareholders or entrepreneurs while public sectors are jointly owned by members of political communities. Public agencies are funded by taxation whereas private agencies are funded by the pay of their consumers. Public sectors are controlled by political forces and private sectors are controlled by market forces.


What is a difference between public private partnership and private public partnership?

No, both refer to joint efforts by private companies and governmental bodies.


What is the difference between the private and public sectors of your economy?

Public sectors are funded by the government


What is difference between public and private bank?

public bank is state owned banks whereas private banks are owned by private individuals or entities.


What is the difference of public finance from private finance?

the different between public and private wants is on the financial means availlable and on the budgeting procedure


Difference between public and private estate?

Public is open to all for information but can be delt with the government.Private estate is more local to the area you live in.


What is the difference between public and private real estate?

The difference between public and private real estate is that there are more perceived risks with public real estate versus private real estate. There are a few factors that fall into how one is perceived as more of a risk than the other.