- That code will create an object in memory with all the methods and properties defined by the class. The CLR and compiler (as is the nature with C# and object-oriented languages) abstract those complexities in to this simple line so that you can just create an object and get and set properties without having to worry about pointers, memory addresses and the size of various members.
- Instantiating the object allocates the memory and calls the constructor.
- That is just the notation that equates to allocating memory and calling the constructor.
I think this answers your questions. If you have any more questions, I'd be happy to answer them.
Wasabi Fan
No comments:
Post a Comment