a = 10; b = 5; sum = a + b;
a = 10; a.print(); //ERROR (cannot send message)
//Primitive variable a int a; a = null; //ERROR
😊 Yang | 😇 Sally | 😔 Kofi |
🙂 Jiao | 🤭 Yawo | 😀 Bob |
😁 Mary | 😃 Khawla | 🤫 Zada |
😊 Yang | 😇 Sally | 😔 Kofi |
🙂 Jiao | 🤭 Yawo | 😀 Bob |
😁 Mary | 😃 Khawla | 🤫 Zada |
Person 😊 firstName |
Concept | Also Called | Count | Quick Description |
---|---|---|---|
Type | Class (Next Chapter) | One | A single definition (e.g. "Person") |
Object | Instance | Zero to many | Actual person objects. For example: "Zada", "Yang", "Yawo", "Bob", ... |
Property | Field, Varibable, or Attribute | Zero to many for a given type | Aspects of an object like "width" and "height" (e.g. for a Rectangle type) |