2.1 Classes & Objects
Introduction
A class is a blueprint that defines the data (fields) and behavior (methods) that its objects will have. An object is a concrete instance of a class, created at runtime, with its own copy of the class's instance data. If `Student` is the class, then `ama` and `kwame` are two distinct `Student` objects, each with their own name and grade.
Key Concepts
Java Syntax
Code Examples
`ama` and `kwame` are two separate `Student` objects. Each has its own `name` and `grade`, independent of the other.