subsection3_8_4.html
subsection3_8_3.html
subsection3_8_3.html
tableofcontents3_1.html
Next:
subsection3_8_4.html
Standard Initialization Methods
Up:
subsection3_8_3.html
Writing Methods
Previous:
subsection3_8_3.html
Writing Methods
Declaring Public Methods
All the methods of a class are by default private methods and cannot
be accessed by the application programmer. If you want to make a
method public, you can include its name in the
-method
section
of the class declaration. In our TixArrowButton example, we have
declared that the methods
flash
,
invert
and
invoke
are public methods and they can be accessed by the application
programmer. All other methods of the TixArrowButton class will be
private.
Usually, the names of private methods start with a capital letter
with individual words capitalized. The names of public methods
start with a lowercase letter.
http://tix.sourceforge.net
http://tix.sourceforge.net
