what r the properties should be given to set method?
Answer Posted / venkatesh
Class Class1
' Define a local variable to store the property value.
Ans: Only One Property.
example:
Private PropertyValue As String
' Define the property.
Public Property Prop1() As String
Get
' The Get property procedure is called when the
' value
' of a property is retrieved.
Return PropertyValue
End Get
Set(ByVal Value As String)
' The Set property procedure is called when the
' value
' of a property is modified.
' The value to be assigned is passed in the
' argument to Set.
PropertyValue = Value
End Set
End Property
End Class
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain the use of new keyword?
What is writeline in vb.net?
what is difference between web.config and machine.config and where it will be ?
What are the different variables in vb.net?
Explain how can we remove handlers at run time?
What are the types of generations in garbage collector?
What is the difference between vb 6 and vb.net?
Explain global assembly cache (gac)?
Define manifest?
What is visual basic.net culture?
What is the difference between .dll extension and .exe extension files?
described weak typing?
What are the differences between server-side and client-side code?
List the two main parts of .net?
What do you mean by serialization and deserialization and it's use.