Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Dot.Net 2
« Previous
Next »
Which of the following are correct?
Properties in .NET can be declare as
1.Static , Protected internal,Virtual
2.Public,internal, Protected internal
3.Only public
4.None
Options
- 1,2
- 3
- 1,2,3
- 4
CORRECT ANSWER : 1,2
Discussion Board
C#.NET
The answer is correct. Properties can be marked as public, private, protected, internal, or protected internal. These access modifiers define how users of the class can access the property. A property may be marked as a virtual property by using the virtual keyword. This enables derived classes to override the property behavior by using the override keyword.
Prajakta Pandit 09-11-2015 04:48 AM
Discussion
I could not get the understanding of answer as 1 for this question. could you please explain. How could a property be declared as virtual.
Aadii 04-22-2014 08:58 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
ASP.NET (41)
ASP.NET (16)
ASP.NET (16)
ASP.NET for Freshers (19)
ASP.NET for Experienced (19)
ASP.NET (20)
ASP.NET (20)
ASP.NET (25)
ASP.NET (20)
ASP.NET (20)
ASP.NET (20)
ASP.NET (20)
Dot.Net (100)
.NET Framework (26)
.NET Caching (7)
.NET Remoting and webservices (10)
.NET Security (11)
ADO.NET (10)
C#.NET (25)
VB.NET (33)
DOT.NET (10)
C#.NET freshers (20)
C#.NET freshers (20)
C#.NET experienced (20)
C#.NET (25)
C#.NET (20)
Sharepoint (20)
Sharepoint 2007 (15)
WCF (50)
WPF (45)
Advertisement
▲