Duration: 19 minutes
Summary: In this video, we discuss structures to understand the difference between them and classes. Structures are usually used to create geometric objects (Rectangle, Circle, Point...). They are created on the stack, while classes are created on the heap. This example will illustrate how to create structures and how to use the constructors to initialize the data members. We will also see the impact of passing a structure to a method and changing the structure members inside the method.
Methodology of the development of example: Good coding standard and simplified design.
Technology Used: C# 4.0
Keywords: C#, System, struct, new, Console, ReadLine.