Is it possible to return only a part of an object? : <p>I have a class with 10 variables, for example. I create an instance of it and I return it, and, obviously, it returns the 10 variables.</p>

<p>What I'd like to know is if is it possible to return an object made of (for example) the 5 first variables.</p>
