> Hello aravind , > > I tried to compile the program using Visual C++ 64 bit edition and I > could not compile the original program . I tried > your suggestion of putting extra parenthesis , still it did not compile. > > > Did it get compiled with GCC ? >
It won't compile because obj is a function name and obj.show() is meaningless. > The class written here do not have any instance variable. It is creating a temporary object in xyz(abc x) > > What will be the size of a class with no instance variable ? It depends on the size of member variables and the virtual mechanism. I think it doesn't have a dependency with "no instance variable". Happy Hacking, Jos Collin _______________________________________________ Indian Libre User Group Cochin Mailing List http://www.ilug-cochin.org/mailing-list/ http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org #[email protected]
