Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Distributed Reservation Management System (DRMS) using Java RMI

Ranch Hand
Posts: 954
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Arrrgh! Do you smell that design flaw? Why would a Book be responsible for knowing if it was overdue or not?

Earlier i tried the same but i found it is bad so i change this responsibility to the Library. I also tried to do this using Java 8 lambdas but
could not succeed to come with this simple as you mentioned so i moved back to older style for sake of readability.

Yup, we should give correct good name. I am still doing small small mistakes. Thanks for pointing that. I have never thought about this
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic