Welcome to AspAdvice Sign in | Join | Help

September 2006 - Posts

Why is the size of an Object not zero in C++?

In C++, it is possible to declare a class that contains nothing inside it and then instantiate the class. But the strange thing is that the size of this class is never zero. Ideally, the size of such object is the value of the least positive integer.

Static vs Non - Static Methods

This is an often misunderstood concept but an important one for learners who are new to C++/Java/C#. A static method belongs to the class and a non-static method belongs to an object of a class. That is, a non-static method can only be called on an object

Introducing Serialization in .NET

Please find my latest article on Serialization in .NET at http://aspalliance.com/983 Write back to me with your views. I would look forward to it. Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!