Object Oriented
Class
Java
class Person {
public String name;
public int age;
public void greet() {
System.out.println("Hi! I'm " + name);
}
}
Class is a blueprint from which Objects are created.
Class represents a set of properties (state) and methods (behaviors) that are common to all objects created from it.