Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

public class in package  RSS feed

 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear sir suppose i would like to devlope a package as follow

package abc;
public class first{
//fun1
//fun2
}
now i will save this package with first name now if i want to store many public class in the abc package then how can i do that because one class contane only one public class , are you getting sir what i want to say hope yes. so how can i do that sir how?

with regad
Arun kumar maalik
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you're not storing this package, but you're storing 'first' class in package 'abc'.
You can create as many classes as you want in this package.
 
Ivan Rebrov
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should create multiple files. Each public class in it's own separate file.
[ August 12, 2006: Message edited by: Ivan Rebrov ]
 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks sir i understood
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!