This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wrapper class in enterprise application

 
jacob deiter
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is meant by wrapper class.I have idea that Primitive data type are converted into corresponding object using wrapper class.Apart from this ,what is the real time use of Wrapper class in any enterprise application
 
Manuel Leiria
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if this is the context where you want some explanation about a wrapper class, but here it goes:

Imagine that you have a method that must return two values, or an object and a value. What do you do? well, create a wrapper class to grab the value and the object and return that class (but some questions arise: aren't your method trying to do more than it should? make sense, in terms of OO create such a class?)

hope it helps,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic