What is the difference between class and structure?
structure is a value type class is reference type, struct Memory will be on stack and class Memory stored on Heap, struct not suports inheritance and class can support; By default the members of struct are public. By default the members of class are private. When an object is created to a class, constructor will be called automatically.