Results 1 to 4 of 4
- 10-12-2008, 11:05 AM #1
Senior Member
- Join Date
- Oct 2008
- Posts
- 116
- Rep Power
- 0
How I build my own libraries of classes/methods in java ?
How I build my own libraries of classes/methods in java ? how then I refer a functionX() (i mean method) in LibraryX ? can you give a short/brief example of a library with a class with a method and a main method of normal class calling this method (of external's added library's) ?
- 10-12-2008, 11:09 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 23
Write your classes for a specific functionality. In that case you have to much care of encapsulations. So you need a safe interface(actually a method(s) to set values) for all other packages. Then to use as a library, or as a package build a jar file. That's the way I use. But, if you want to keep your code in much safe, you must keen on OO concepts.
- 10-12-2008, 01:07 PM #3
Just another cross poster.
New To Java - How I build my own libraries of classes/methods in java ?
db
edit And java.net Forums : How I build my own libraries of ...Last edited by DarrylBurke; 10-12-2008 at 01:16 PM.
- 10-12-2008, 02:49 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 23
Oh deer, seems this is an habit for most of newbies here in our community. Why people really doing this?
Similar Threads
-
Trouble with static methods and boolean equals() methods with classes
By dreamingofgreen in forum New To JavaReplies: 8Last Post: 04-16-2012, 11:00 PM -
Java and Eclipse: Adding a build or revision number to application using SVNAnt
By sal_manilla in forum EclipseReplies: 4Last Post: 10-25-2010, 05:59 AM -
How to call methods of different classes
By adeeb in forum New To JavaReplies: 2Last Post: 06-06-2008, 06:08 AM -
Help with testing methods and classes in JUnit, using BlueJ
By Jonasse in forum New To JavaReplies: 1Last Post: 04-17-2008, 02:30 PM
Bookmarks