What is the difference b/w Readonly Variable and Constant
Variable?

Answer Posted / cherran

Readonly Variable can be accessed while instantiating the
Class and CONSt - you have to manually code the constant in
each and every project.

Like:
ReadOnly Property age() As Integer
Get
Return 98
End Get

End Property

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is diffrence constructor and destructor in vb

721


What is an application domain? how they get created?

768


Explain clr?

740


Explain about branching logic control in vb.net?

709


Explain about the keyword must inherit?

748


What is the difference between system.applicationexception class and system.systemexception?

893


Write a VB.Net console program to check whether a number is perfect or not.

7278


What are the different types of a stream?

741


Explain the difference between namespace and assembly?

680


What is trace in vb.net?

775


What does assert() method do In VB.NET

719


What is static member?

753


Explain jit?

727


What is branching logic control in VB.NET?

731


What do you mean by serialization?

729