Class
A class is the blueprint from which individual objects are created. Class is a one which contains states (variables) and behaviour (methods)
Syntax –
class <className>
Object
public class Test
{
public static void main(String[] args)
{
Lover l1 = new Lover();
Lover l2 = new Lover();
}
}
ALSO SEARCH:
"classes and objects in java example programs"
"difference between class and object in java"
"how to create object in java with example"
"what is object in java with example"
"class in java"
"java class example"
"object in java"