Object-Oriented Programming Language by Microsoft
C# (C-Sharp) is a modern object-oriented programming language used for game development, web apps, desktop apps, and backend systems.
Unity Game Development 🎮 Web Applications 🌐 (ASP.NET) Desktop Apps 💻 Cloud Services ☁️ Enterprise Software 🏢
using System;
class Program {
static void Main() {
Console.WriteLine("Hello World");
}
}
Encapsulation 🔒 Inheritance 🧬 Polymorphism 🔄 Abstraction 🎭
int age = 20; float price = 99.5f; string name = "Sasank"; bool isActive = true;
void Greet() {
Console.WriteLine("Hello!");
}
Used to control: - Player movement 🎮 - Physics ⚙️ - Game logic 🧠 - UI systems 🖥️
Strong typing 🧱 Garbage collection ♻️ Cross-platform 🌐 Fast performance ⚡