Skip to main content
pelatihan
.org
Learn. Practice. Grow.
Category
EN
Sign in
Sign up
Menu
C# Curriculum: 5 Chapters, 41 Lessons — pelatihan.org
Home
/
Catalog
/
C#
/
Curriculum
Curriculum
C# Curriculum
Learn C# online with 41 structured lessons, code examples, and 205 quiz questions.
41 lessons
5 chapters
205 questions
Summaries and key points are free to preview. Full lessons, code examples, and quizzes require a subscription.
01
C# Tutorial
20 lessons
01
C# HOME
C# (pronounced C sharp) is an object-oriented programming language developed by Microsoft and running on the .NET platform. This page is the gateway: get to know the C#…
02
C# Intro
C# is a class-based, static type, language that runs over runtime complete with garbage collection. It continues to evolve and supports modern features such as LINQ, async/await,…
03
C# Get Started
To start writing C#, install the SDK from Microsoft's official website, and then create a new project with the new dotnet command. Programs run via a dotnet run on the terminal…
04
C# Syntax
The C# syntax follows the C family style: the code is arranged into a class, the method begins with the type and name, and each statement ends with a semicolon. The code blocks…
05
C# Output
The base output is printed with Console.WriteLine that adds a new line, or Console.Write that remains on the same line. Dynamic text can be compiled using a placeholder such as…
06
C# Comments
Comment is a note that the compiler ignores and uses to explain the code. C# provides one-line commentary, block commentary for many lines, as well as XML-format documentation…
07
C# Variables
A variable is a named container for storing data of a certain type, for example int age = 20. The name of the variable must not be preceded by a number, must not contain spaces,…
08
C# Data Types
C# has primary data types such as int, double, string, bool, and char which each store different data forms. Types are also available for larger numbers such as long and decimal,…
09
C# Type Casting
Type casting is the conversion of values from one type to another type, for example from int to double. Automatic conversion (implicit) occurs when the target type is broader,…
10
C# User Input
The program can read user input via Console.ReadLine which always returns the string. Therefore the numbers must be converted to numeric type using int.Parse or int.TryParse.…
11
C# Operators
The C# operator includes arithmetic such as plus, minus, times, divisors, and modulus, then comparisons such as equal to and greater than, as well as logic and, or, and no. The…
12
C# Math
Math classes in the namespace system provide ready-made mathematical functions such as Sqrt, Pow, Abs, Max, Min, and Round. All the methods are called statically by the class…
13
C# Strings
Strings are immutable text storage objects, meaning their value cannot be changed in place. C# provides many built-in methods such as Length, ToUpper, Substring, IndexOf, and…
14
C# Booleans
The bool type only stores true or false, and is the result of a comparison expression or condition. Boolean works like a program switch: the value true makes the block code run.…
15
C# If...Else
The if structure checks a condition and runs a block of code when the condition is correct, while the else provides a backup line. Many conditions can be arranged in a sequence…
16
C# Switch
The switch is suitable for choosing actions based on a specific value, such as menu or day of the week. Each case ends at a break so that the execution does not fall to the next…
17
C# While Loop
A while iteration repeats a block of code while its condition is still true, so that the number of iterations can only be known as the program runs. The do while variants check…
18
C# For Loop
The iteration for combines the initialization, condition, and value addition in one line so that it is suitable for iterations with a fixed number. For can also be used to…
19
C# Break/Continue
Break stops the repetition completely, while continue jumping through the rest of the running iteration and then continue on to the next iteration. Both are useful for dealing…
20
C# Arrays
The array stores many values of the same type within one variable, with indexes starting at 0. The size of the array is determined when it is created and is unchanged, so its…
02
C# Methods
3 lessons
01
C# Methods
A method is a named block of code that performs a specific task and can be called over and over from a variety of places. Static methods are called by the class name without…
02
C# Method Parameters
A parameter is a variable that a method accepts, whereas an argument is the actual value that is sent at the time of calling. C# supports default value parameters, writing…
03
C# Method Overloading
Overloading means making several methods with the same name but different parameters, both quantity and type. The compiler automatically selects the most appropriate method based…
03
C# Classes
13 lessons
01
C# OOP
OOP (Object-Oriented Programming) breaks down the problem into objects that have data in the form of fields and behavior in the form of methods. C# applies the four pillars of…
02
C# Classes/Objects
A class is a definition that contains a field as data and a method as behavior, whereas an object is an instance created with the keyword new. Each object has its own copy of the…
03
C# Class Members
A class member consists of a field as a data, a method as a behavior, and a property as a data access gateway. This keyword refers to a running instance, useful to distinguish a…
04
C# Constructors
A constructor is a special method that runs automatically when an object is created with new, and the name is exactly the same as the name of the class. When there's no…
05
C# Access Modifiers
The access modifier determines the extent to which a class member can be accessed. The four main modifications are public, private, protected, and internal, with private as…
06
C# Properties
The property provides controlled access to the private field through the get block for reading and set for writing. C# supports auto-implemented properties that write boilerplate…
07
C# Inheritance
Inheritance makes a derivative class take the field and method from the parent class by writing a colon after the class name. The base keyword is used to access the parent…
08
C# Polymorphism
Polymorphism makes a single name method can have different behavior in each derivative class, applied with virtual in parent and override in derivative. Thus, the code that works…
09
C# Abstraction
Abstraction hides complexity and only displays essence through abstract classes and abstract methods. An abstract-marked class cannot be made an object, but can be inherited. The…
10
C# Interface
Interface defines a contract as a set of methods without storing data in it. A class can implement multiple interfaces at once, thus being a solution to the single inheritance…
11
C# Enums
An enum is a special type that holds a set of numerically-valued constant names, e.g. a day enum with Monday and Tuesday members. With the sixth, the magic number is renamed…
12
C# Files
C# can read and write text files through the File class in the namespace System.IO. Methods such as ReadAllText, WriteAllText, and AppendAllText work directly with the path…
13
C# Exceptions
An exception is a state of error that occurs when a program is running, such as dividing by zero or reading an empty file. C# handles it with try, catch, and finally block so…
04
C# How To
1 lessons
01
Add Two Numbers
This lesson summarizes how to sum two numbers: declare the variable, calculate the result, and then display it. The interactive version adds input reading and type conversion so…
05
C# Examples
4 lessons
01
C# Examples
This page collects examples of short programs that practice a combination of concepts such as variables, iterations, arrays, methods, and OOPs. Reading and modifying examples is…
02
C# Server
C# is not limited to console programs; with the Core, C# became the foundation of web applications and server-side APIs. The server receives a request from the client, processes…
03
C# Syllabus
The C# syllabus organizes the learning sequence from basic syntax, variables, and data types to advanced topics such as OOP, exception, and file. This sequence is important…
04
C# Study Plan
The study plan breaks down C# material into a realistic, measurable weekly target. The key to success is consistency: a small exercise every day is more effective than a sporadic…