Zusammenfassung der Ressource
FirstTask
- Constructor
- Object
- Methods (Actions)
- Optional
- Define actions that a class's objects (or instances) can do
- camel Naming Convention
- Return type void means method returns nothing
- When a reference variable does not have a value, it has a null value (must be assigned))
- Fields (Attributes)
- Optional
- Can be primitives or references to objects
- camel Naming Convention
- Every class needs at least one constructor
- Method Main
- Entry point to an application
- Needed for only one class
- Template to create Objects of identical type
- Fields specified in class will automatically be added to objects created out of class
- Pascal Naming Convention