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

Changing Access Specifiers of Data class

 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi reader,
I want to change access specifier of seek() and readRecord () method from private to default . Shall I go ahead and change them ?. Please revert your opinions as soon as possible.
Thank you,
 
Sam Stackly
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do that as long as you have a good reason.
but why do you want to do that?
Sam
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I want to change access specifier of seek() and readRecord () method from private to default

I would urge you to reconsider. Why not use the already public getRecord() for all your needs?
Eugene.
 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eugene,
You are excellent person my sweety konovo . I was also thinking the same thing upto late night.
Thank you,
 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eugene,
Look up javadocs for setAccelerator() and setMnemonic().

Can you tell me eugene to which class they belong.And also tell me something about modal dialog box.
Thank you,
 
friso dejonge
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
your questions are all answered in the java tutorial (excellent bedtime reading). You can find it at:

try JMenu and JDialog, that should solve it.
cheers,
friso
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic