This post originated from an RSS feed registered with Java Buzz
by Arpit Mandliya.
Original Post: Object and Class in java
Feed Title: Java tutorial for beginners
Feed URL: http://feeds.feedburner.com/arpitmandliyasblog
Feed Description: A blog about java programming language and its frameworks
In this post, we will learn about Object and class in java. As Java is an object-oriented programming language, we need to design our program using Objects and classes. Object: An entity that has state and behavior may be termed as Object. For example: Employee has state with name, age and department, and behavior such as working on the assignment. Class: A class is a blueprint/template that defines state and behavior of objects. For example: Employee is a class in above example. Object is an instance of class: As object are created on the basis of blueprint/template that class provides,