You got some part wrong. Yes, object "can" be called a container of data. But you should always think of it as an instance or an entity.
Also, in the given picture. Writeline is not "storing" the data in an object. It just basically cast's the variable i to object.
Check the method documentation here:
You do not have permission to view the full content of this post.
Log in or register now.
No. Again, you should think of an object as an Entity. ie: Chair, pen, car, etc..
In C#, an object is an instance of a class. To understand this better, there's a common analogy to this to show the difference between the two.
A class is like a recipe. An object is a cake. From one recipe you can build many cakes. A recipe can only contain hints (be abstract) and leave room for your own creation of a recipe (implementing class) from which you can then build cakes (objects). So a class is not an object, it's the description of what objects of that class look like. Abstract classes contain methods and other information useful for the implementation of classes deriving from this abstract class.
Remember that C# is a object oriented programming language. That means the entirety of the language are built with objects and class.
Check the definition here:
You do not have permission to view the full content of this post.
Log in or register now.
Hope this helps.