A class is a blueprint; an object is an instance created from it at runtime.
A class is a type definition (blueprint) describing fields, properties and methods; it exists in code and metadata. An object is an instance of that class created at runtime with new, occupying memory with its own state. One class, many objects.
Read the full lesson with progress tracking and the rest of the course on DevLadder — free step-by-step tutorials and interview questions for developers.
Next in the course: Constructors: default, parameterised, static, private, chaining →
Source: DEV - interview — Read the full article on the original site ↗
