Full_CSharp_NET_Viva_Long_Answers
Full_CSharp_NET_Viva_Long_Answers
The .NET Framework is a software development platform by Microsoft that provides tools and libraries to
1. Common Language Runtime (CLR): It handles memory management, security, exception handling, and
more.
2. .NET Class Library: A rich set of classes, interfaces, and value types that support many programming
tasks.
3. Common Type System (CTS): Ensures type safety across different .NET languages.
5. Just-In-Time (JIT) Compiler: Converts MSIL code to native machine code during execution.
This layered architecture ensures flexibility, security, and reusability in software development.
A class in C# is a template or blueprint from which objects are created. It defines properties and behaviors.
Example:
class Car {
myCar.color = "Red";
myCar.Drive();
Example:
Console.WriteLine(num);