L. P. with Microsoft C# - Level 3-Quiz-3
- A struct qualifies as a user defined value type, as well as a lightweight class, and has no support for inheritance.
- There is no initialization of private variable in Struct. A Struct can't be derived from other classes.
- In Small, simple objects case you would want to use a Struct, rather than a class.
- You are creating a struct and want to call a default Constructor. What do you need to do when defining the struct?
Make sure not to code any constructor at all.
- You are making a WriteLine statement, and you want to put a placeholder in for a value that you will designate at the end of the line of code. {0} placeholder you can use to do this.
Permalink |
Comments (0) | Hits: 1084 | Time: 16:20:09