|
C#.Net Interview Questions and their answer
part 2.
By Nishant Kumar
Question -
How do you inherit derived class from a base class in
C#.NET? Answer -
By using colon and then the name of the base
class.
Question -
Name the Top .NET class that everything is derived
from.
Answer -
System.Object.
Question - Define protected class-level
variable in C#.NET.
Answer -
It can be inherited by the classes in the same
namespace.
Question -
Is it possible to inherit private class-level variables?
Answer -
No.
Question - Is it
possible to inherit multiple interfaces in C#.NET? Answer - Yes.
Question - Define Protected internal.
Answer -
It is available to derived classes and classes within
the same Assembly.
Part 1 | Part 2 | Part 3 | Part 4 | part
5
<<Previous Next>>
Define connected and disconnected data access in ADO.NET |
Describe CommandType property of a SQLCommand in ADO.NET. | Define
Dataview component of ADO.NET. | What are the ways to create
connection in ADO.NET? | Access database at runtime using
ADO.NET
What is code security? What are the types? |
Define Principal object. | Define declarative and imperative
security. | Define role-based security. | Explain code access
security. | What is Code group? | Define the use of Caspol.exe.
What is break mode? What
are the options to step through code? | Debug Vs Trace. | Define
trace class. Define Listeners collection of Trace and Debug objects.
| Define Trace Switches.
|