Zusammenfassung der Ressource
Objects and Classes
- Classes: are an oop tool that enables programmers to create
the abstraction of a problem
- 3 things to consider when writing a class:
class name, the fields, and the methods
- Objects: are everywhere, living and otherwise: concrete and abstract
- A class is a blue print or a template to create objects of identical type.
- OOP: Object-Oriented Programming
- Ex: Having an employee class that has age and position as
fields, all employee objects created out of this class will have
age and position as fields.
- Fields: are variables, the initials of each word is capitalized following the first word
- null: a concept referring to nothing
- Void: a method that does not return a value
- Methods define actions that a class's objects can
do.