Tuesday, January 27, 2015

Creating a Class in Java - Part 1

Lets take a look how we can use objects and classes to create a small program using Java.

Assuming the you have installed Eclipse IDE. Eclipse is IDE(Integrated Development Environment) that is used to create Java applications, it is an industry standard tool which is used globally by many software engineers.

Download Link : https://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/lunasr1a

Open Eclipse and then go to the File-->New-->Java Project-->Enter your project name and click on finish.

Then on the left side you can see the Package Explorer tab and inside that you will find your created project. Right click on the project folder that your created previously.

Click on class:




Next, give the class a name, I had given the Name as Person.



Then you will see your class appearing like this :



In the future tutorials lets look how to add attributes and methods for the Person class.

No comments :

Post a Comment