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


Please Help Members By Posting Answers For Below Questions

Explain the difference between thread and process?

506


How would you implement inheritance using vb.net?

510


Is vb net a scripting language?

543


How to store images in sql server database through vb.net?

503


Which namespace are used for accessing the data?

642






Explain how to store decimal data in .net?

711


Explain about visual basic?

546


What is late binding?

544


Explain the difference between c# and vb.net?

551


Explain the difference between datatable and dataset?

552


How many classes a dll can contain?

553


What is the diff between vb mdi form and .net mdi form?

542


What is the difference between .dll extension and .exe extension files?

608


What is the purpose of objects present in asp.net?

574


What are the differences between vb.net and c#, related to oops concepts

572