Object - Objects have states and behaviors. Example: A dog has states - colour, name, breed as well as behaviors - barking, eating, sleeping. An object is an instance of a class.
Class - A class can be defined as a template/blueprint that describes the behaviours/states that object of its type support.
public class Dog{
String breed;
int ageC
String color;
void barking(){
}
void eating(){
}
void sleeping(){
}
}
Dog obj = new Dog()