• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

peter can u pl. comment ?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter,
your explanation (in Modifying vs inheritance )is really very deep and clear.
I was about to pack my project but now after reading your explanation I got stuck.

Originally posted by Peter den Haan:
[B]
"The RemoteData class is a subclass of Data responsible for providing access to a single local database file, comprising reading, writing and searching facilities, managing record and database locks for remote mode operation, and generating client IDs for remote clients. It is a Remote object to be exposed using RMI. The lock methods inherited from Data that do not take a client ID should not be used."
-----
Exaclty you mean to say RemoteData class(remote object) will extend Data class ? if that is true then my design is really wrong. u saved me. pl. comment on my design :
Data class implements dataInterface
RemoteData class extends UnicastRemoteObject, implements DataInterface
I have literally replicated Data class methods in Remotedata class(cut-paste), except RemoteData class is throwing RemoteException and implementing lock and unlock methods.
Is this correct or not proper OO design. Can u pl. comment (and guide)?
reena K

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic