<<< Things to discuss | Index | Object Creation >>> |
A class of objects is defined by
data variables (a.k.a. attributes or fields)
constructors
Note that constructors are methods, but nothing can be returned from them
methods
accomplish tasks for which the class is responsible
can be private or public (implementation vs. public interface)
can be static just as the data variables
<<< Things to discuss | Index | Object Creation >>> |