Quote:
Originally Posted by manaya
I am visiting this blog for first time. I am proud to say that I’ve become a great fan of this blog officially. A good blog always comes-up with new and exciting information like this one. Anyone who really wants to read a article with full of information, should read this.
|
Hello,
From understanding your question i think i might be close to answer it, I will give it a try.
I think you mean nameless objects- Anonymous variables & objects
Anonymous instances are objects that you strictly need to construct and send/mail somewhere else like for an example calling a function from a register or any block, but again you don't need to know anything about afterwards or the results which are going to occur. Unlike other objects, anonymous instances have a scope and a good chance that lasts only until the end of the expression they are created in.
For a short example, you can try this simple code,
" foo(MyClass("abc")); "
Note : please ignore the quotations in the above line code