what is member initialization?

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.