It's not a secret anymore!
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Implementing lock and unlock outside Data class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Implementing lock and unlock outside Data class" Watch "Implementing lock and unlock outside Data class" New topic
Author

Implementing lock and unlock outside Data class

Charles Dupin
Ranch Hand

Joined: Oct 18, 2002
Posts: 94
Hi guys,
Do you see any problem implementing the two methods Data.lock() and Data.unlock() outside Data class, for example in a lockManager not subclassed from Data.
The instruction says: Part of your assignment will be to enhance the Data class. You may do this by modification or subclassing, but you should document the approach and reason for your choice.
Thanks for your help.
Charles.


Charles.<br />(SCJD2)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17276
    
    6

Actually that is the preferred method of implementing lock and unlock methods.
Good Luck
Mark


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Charles Dupin
Ranch Hand

Joined: Oct 18, 2002
Posts: 94
OK,
Thank you vm;
Charles.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Implementing lock and unlock outside Data class
 
It's not a secret anymore!