A class is a blueprint; an object is an instance created from it. A constructor is a special method that initializes a new object. Together they're the foundation of Java's object-oriented model.
Defining a class with a constructor
{
String name;
age;
{
.name = name;
.age = age;
}
String {
+ name;
}
}
