Miscellaneous

51
1552 reads

February 14, 2013

Private access specifier


A private member variable or function cannot be accessed, or even viewed from outside the class. Only the class and friend functions can access private members.

22
1629 reads

February 14, 2013

Protected access specifier


A protected member variable or function is very similar to a private member but it provides one additional benefit that they can be accessed in child classes which are called derived classes.

37
1644 reads

February 14, 2013

Public access specifier


Public members are members of a class that can be accessed by any function in the program.

30
367 reads

February 14, 2013

Accessing Private Members


Sometimes it is needed to use the private members and assign them new data. So this example show how to do that.
33
361 reads

February 14, 2013

Effect of Property Visibility in Other Class


Shows the effect of Property Visibility in other classes.
29
393 reads

February 14, 2013

Method Visibility


Class methods may be defined as public, private, or protected. Methods declared without any explicit visibility keyword are defined as public.
30
374 reads

February 14, 2013

Property Visibility


Class properties must be defined as public, private, or protected. If declared using var, the property will be defined as public.
90
4071 reads

January 13, 2012

TestProject


only for IO test by this site...
55
2959 reads

November 9, 2011

Type casting


this program demonstrates type casting in cpp.
44
2820 reads

November 9, 2011

define structure


this program implements structure of cpp.