what is member initialization?

Recommended Answers

Basically it's when you assign a default value to a member. For number types this usually means 0. For strings usually an empty string(""). For more complex, types the new keyword is used to get the system default value(s) assigned to the member.

Jump to Post

All 2 Replies

Basically it's when you assign a default value to a member. For number types this usually means 0. For strings usually an empty string(""). For more complex, types the new keyword is used to get the system default value(s) assigned to the member.

member initialization is assigning a default value to a member

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.