Explain how to implement properties - DOT.NET

Explain how to implement properties.

You can either use fields or property procedure to add properties.

It is convenient to use fields when the values associated with the properties are less in number. eg: boolean which can have only two values associated with it.

If property procedure has to be used to add a property, then three steps need to be followed:

- Declare a private variable to store the value of the property
- Write a get procedure to retrieve the value of the variable and
- Write a set procedure to set the value of the variable.
Explain how to create a read-only or write-only property - DOT.NET
To create a property that can only be read and not altered, you need to declare it as ReadOnly....
Describe .NET form - DOT.NET
Forms provide a User Interface (UI) to give the applications a look and feel. Forms provide properties, methods, and events for the controls they contain...
What are Form properties? - DOT.NET
The common properties that all of the controls on form have are: Font, ForeColor, Modifiers, TabIndex....
Post your comment