C# Programming - Properties - Discussion

Discussion Forum : Properties - General Questions (Q.No. 8)
8.
A property can be declared inside a namespace or a procedure.
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
4 comments Page 1 of 1.

Nooor Hasaan said:   8 years ago
Why don't we declare a property inside a procedure?

Give me an example.

Swapnali Shinde said:   9 years ago
Procedure itself is a function and we cannot declare properties inside a function.

Sunny siddhu said:   9 years ago
Property is declare inside a class, struct, interface.

Riya said:   10 years ago
Why don't we declare a property inside a procedure? Somebody help me.

Post your comments here:

Your comments will be displayed after verification.