Home arrow Java arrow Page 2 - A Fast Gateway to OOP in Java using NetBeans IDE
JAVA

A Fast Gateway to OOP in Java using NetBeans IDE


This series introduces you to object oriented programming in Java visually using NetBeans IDE. This series will be a bit different from traditional introductions to OOP in Java. In traditional introductions of OOP in Java, we are generally used to working with console applications using the command line.

Author Info:
By: Jagadish Chaterjee
Rating: 4 stars4 stars4 stars4 stars4 stars / 4
June 26, 2006
TABLE OF CONTENTS:
  1. · A Fast Gateway to OOP in Java using NetBeans IDE
  2. · Adding your own class
  3. · Customizing your own class
  4. · Accessing the members in “test”
  5. · Working with more than one object

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
A Fast Gateway to OOP in Java using NetBeans IDE - Adding your own class
(Page 2 of 5 )

Once you have completed all the steps in the previous section, you can proceed with the following steps to create your own class:

  • Again, right click on “MyPack” -> New -> Java Class (Fig06).

  • Within the “new java class” dialog, give the Class Name “MyCalc.”
  • Click on “finish” (which opens your source window).

Once you click on “Finish,” you should be looking at the following skeleton of code:

package MyPack;
/**
 *
 * @author Administrator
 */
public class MyCalc {   

    /** Creates a new instance of MyCalc */
    public MyCalc() {
    }   

}

That is the minimum skeleton you need to work with any class in Java.  Till now, you can understand that all the code is created for you (ready made).  The IDE generally helps you to create the skeleton only. Once the skeleton is ready, you need to customize it according to your requirements.


blog comments powered by Disqus
JAVA ARTICLES

- Deploying Multiple Java Applets as One
- Deploying Java Applets
- Understanding Deployment Frameworks
- Database Programming in Java Using JDBC
- Extension Interfaces and SAX
- Entities, Handlers and SAX
- Advanced SAX
- Conversions and Java Print Streams
- Formatters and Java Print Streams
- Java Print Streams
- Wildcards, Arrays, and Generics in Java
- Wildcards and Generic Methods in Java
- Finishing the Project: Java Web Development ...
- Generics and Limitations in Java
- Getting Started with Java Web Development in...

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials