Structs in C sharp Arabic #27
Suggested Videos
Properties in C sharp Arabic II #26
❑ About Structs.
Just like classes structs can have.
1. Private fields
2. Public properties
3. Constructors
4. methods
Object initializer syntax, introduced in C# 3.0 can be used to initialize either a struct or a class.
note: there are several differences between classes and structs which we will be looking at in a later session.
Tags:
C sharp