Re: need answer for these
What did a web search tell you? The answers are there, with probably a lot more detail than we can reiterate and within a few milliseconds rather than waiting for someone to respond. Just do the search
Google: What is a class
and if you have more specific questions feel free to ask
Re: need answer for these
Quote:
Originally Posted by
satishbs
3.What is a Null object?
I will answer this one as many people misinterpret this and it may not be explained sufficiently.
There is no such thing as a null object, only null references.
In this code the variable f is not a Foo object. It is a variable that holds a reference to a Foo object. If you set the variable to null it becomes a null reference not a null object.