C# 🧑‍💻

Object-Oriented Programming Language by Microsoft

1. What is C#?

C# (C-Sharp) is a modern object-oriented programming language used for game development, web apps, desktop apps, and backend systems.

2. Where is C# Used?

Unity Game Development 🎮
Web Applications 🌐 (ASP.NET)
Desktop Apps 💻
Cloud Services ☁️
Enterprise Software 🏢

3. Basic Syntax

using System;

class Program {
    static void Main() {
        Console.WriteLine("Hello World");
    }
}

4. Object-Oriented Programming

Encapsulation 🔒
Inheritance 🧬
Polymorphism 🔄
Abstraction 🎭

5. Variables & Data Types

int age = 20;
float price = 99.5f;
string name = "Sasank";
bool isActive = true;

6. Functions

void Greet() {
    Console.WriteLine("Hello!");
}

7. C# in Unity

Used to control:
- Player movement 🎮
- Physics ⚙️
- Game logic 🧠
- UI systems 🖥️

8. Key Features

Strong typing 🧱
Garbage collection ♻️
Cross-platform 🌐
Fast performance ⚡