March 2002
Intermediate to advanced
496 pages
8h 51m
English
Java constructors are special methods. In many respects, including visibility modifiers and exception handling, constructors are like ordinary methods. On the other hand, a significant number of syntactic and semantic rules govern the use and behavior of constructors. These extra rules emerge because classes are significantly different from other objects in Java. In Smalltalk, by comparison, classes are objects that are responsible for providing constructors. There is no special syntax for constructors, a simplification that helps keep Smalltalk syntax small.
|
Smalltalk's simple syntax for constructors is not proof per se ...
Read now
Unlock full access