Login Here                        


       class is a model for creating objects. This means the properties and actions of the objects are written in the class. Properties are represented by variables and actions of the object are represented by methods. So a class contains variables and methods. 

       class is a group of objects that has common properties. It is a template or blueprint from which objects are created. The keyword class is used to declare a class.

Java Images


1.Object is a realworld entity. Object orientation is methodology to design a program by using classes and objects.
2. Object is physical entity where as class is a logical entity.

Java Images

Class and Object

class Student 
Student(int a,int b)
public static void main(String[] args)
Student t=new Student(100,200);

intput and output