Showing posts with label class in java. Show all posts
Showing posts with label class in java. Show all posts

11/3/11

Java Tutorial : What is a Class?

Java class is nothing but a template for object you are going to create or it’s a blue print by using this we create an object. In simple word we can say it’s a specification or a pattern which we define and every object we define will follow that pattern.


What does Java Class consist of :
  • When we create class in java the first step is keyword class and then name of the class or identifier we can say.
  • Next is class body which starts with curly braces {} and between this all things related with that class means their property and method will come here.