.. (לתיקייה המכילה) | ||
In statistics classes what we need to do If result method gets an empty list? | |
You can throw smalltalk error in this case. Also you can use smalltalk error if method receives parameter of the wrong type. |
Do we need to declare the method "result: alist" in the Statistics class or to use it somewhere (for example call it in the New | |
The word "abstract" was mentioned to show, that there is common behavior for all sons - "result: alist". You are not required to mention this method in Statistics class (the same for the Metric class and its abstract method). |
What instanceSize actually does? | |
instanceSize returns the number of fields per instance of the class, which includes the number of fields in the class itself and all its ancestors. |