This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tx:All of URLy Bird 1.1.3 public method in Data class

 
liqun chang
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:George and Andrew
I have finished my Data class and test it run better.
my question is :
I create DataSchema class and get the metadata of the database.and i put this in Data class.I also create ServicesImpl class for booking and searching.
whether i can create public method in Data class(public DataSchema getDataSchema())and used in ServicesImpl? also in Data class,whether i can create myself public method but the methods that sun provides?
please give me some suggestions.
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi liqun,
whether i can create public method in Data class(public DataSchema getDataSchema())and used in ServicesImpl? also in Data class,whether i can create myself public method but the methods that sun provides?

You can do both. Data must implement the provided interface, but nothing prevent you to implement other public methods in Data.
Regards,
Phil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic