
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Explore the basics of C# by building a Windows Forms application in Visual Studio, learning to select language templates and name projects.
Learn how variables are the foundational data type: a store location with a symbolic name that holds a value, can be assigned and change at runtime.
Explore data types and value types in C# basics, including bool, int, char, float, double, and string, and distinguish assignment from equality in variables.
Explore how variables store and update information and learn arithmetic, logic, and relational operators, including modulo and string concatenation, to produce boolean results in C#.
Learn how if statements drive conditional logic and selection structures in C#, using true/false booleans, if-else and else if, with simple examples like calculators.
Explore loops in programming by using while and do-while constructs to repeat statements, control flow with conditions like i < 5, and avoid endless loops.
Learn how arrays store a fixed-size collection of same-type elements, access them with 0-based indices, and declare, initialize, assign, and print their values in C.
Learn how two-dimensional and three-dimensional arrays organize data with indices and sizes to store students across classes and schools.
Explore multidimensional arrays in C#, using two-dimensional arrays with rows and columns, zero-based indices, and a rating matrix to compute the average rating per reviewer.
Explore functions as reusable code blocks with inputs and outputs, learn signatures, return types, parameters, and calling examples like max and hello world in C#.
Master file input and output by reading from and writing to files, using read-only, write-only, read-write, and append modes. See practical examples in C, C++, Java, and Python.
Object-oriented programming centers on objects with data attributes and behavior via methods. Objects interact through these methods to form modular, reusable designs expressed as classes and inheritance.
Explore the fundamentals of objects and classes in object oriented programming, including definitions, data members, member functions, and the state that distinguishes each object.
Explore methods and their five terms: class variables, instance variables, member variables, class methods, and instance methods, showing how they belong to the class or an object.
Explore encapsulation and data hiding in object-oriented programming, including access modifiers like private, public, and protected, and how these concepts bind data and behavior while guarding internal data.
Explore message passing in c# where a method call is dispatched by the receiving object through dynamic dispatch, enabling unidirectional communication and interactions between objects via class methods.
Explore inheritance in object-oriented programming, showing how base classes provide data and methods to derived subclasses, and learn five types of inheritance: single, multiple, multilevel, hierarchical, and hybrid inheritance.
Explore polymorphism, enabling code to treat parent and descendant objects uniformly. See circle and square implement draw and area differently under a shared interface, while cat and dog express sound.
Explore generalization and specification in object-oriented design, transforming common subclass traits into a superclass and creating specialized subclasses, with emphasis on is-a relationships and team coding considerations.
Defines association as the relationship between objects of one or more classes, links as instances, and shows one-to-one, one-to-many, and many-to-many cardinalities with examples.
Create your first C# windows form project in Visual Studio, configure a button with text and font, run it, and wire a click event toward a hello world example.
Finish a first C# Windows Forms project by adding a button that shows a Hello world message box on click, fix compile errors, and customize the button color to blue.
Develop a quiz game in C# by generating random arithmetic problems, timing responses with a timer, and controlling flow with false statements while practicing the Random class.
Design a Windows Forms math quiz game in Visual Studio by building a form, configuring properties, and adding labels, numeric updown controls, and a start button for addition and subtraction.
Add and configure a start button in a C# app, apply camelCase naming conventions for controls, set text and font, enable auto-resize, and arrange tab order for gameplay.
Start coding by creating a randomiser object to generate two random numbers. Store them in left and right labels and convert integers to strings for display, enabling a quiz timer.
Create a countdown timer in a Windows Forms app by using a timer control, updating the time left label every second, and signaling time up with a message box.
Create a private boolean method to verify the answer by comparing the value to the control, returning true if equal; use it with timer to show a message when correct.
Write subtraction problem in a C# quiz, naming variables clearly, generating random values with randomiser.next, preventing negative results, and validating with a logical and operator; previews multiplication and division next.
Code multiplication and division problems in a C# quiz app by generating random values, wiring labels, and using the asterisk for multiply and the division sign.
Learn C# foundations while building a maths quiz game you can inspect and improve. This course combines core programming explanations with a project involving an interface, countdown timer and answer-checking logic, then extends the discussion with threading and SQL lessons.
Work through types, variables, conditions, loops, arrays, functions and file operations before exploring object-oriented ideas. Follow the quiz project through design and arithmetic questions, using each stage to connect a concept with something visible in the application.
What you can practise
Turn a game rule into a condition or method.
Describe how the score and timer change after an action.
Separate a calculation from the interface that displays its result.
Check how a program behaves when a round ends or restarts.
The final reading labs focus on predictable scoring, restart behaviour and shared state in a threading example. Use a simple table to describe the starting state, action and expected result. Compare normal play with an unanswered question or repeated restart before adding more features to the game.
This course suits beginners who want a practical C# project alongside programming foundations, and returning learners who want a concrete example to revisit. The later database and threading sections broaden the scope, so review the curriculum to choose a route that matches your current knowledge.
A compatible development environment will help you reproduce the demonstrations. Recorded tools and APIs come from the time of filming and may differ from current .NET versions. Consult current documentation when adapting them. Choose the course for its combination of basic concepts, a visible game project and exercises that help you explain what the program should do.
A visible project for learning C#
The math quiz gives beginner programming a concrete setting. A question appears, a person responds and the application decides how its state should change. This course connects that visible interaction with C# fundamentals, object-oriented ideas, introductory threading and SQL. The project is a learning example, not a claim of a finished commercial product. Its value is that you can connect a variable or condition with something observable, then use a small test to decide whether the code matches your expectation.
Starting with the language foundation
Variables, types, operators, conditions, loops and arrays provide the material used by later examples. Study each one through its role in a task. A score stores information; a condition distinguishes a result; a loop repeats work according to a rule. Keeping that purpose clear makes the language less like a list of unfamiliar keywords. When an example is confusing, reduce it to the smallest relevant values and trace them. This gives you a way to rebuild understanding before adding the interface or additional project features.
Following a user action
An event in a desktop application connects an interaction with code. Identify which handler runs and which information it reads. Then separate the calculation or decision from the display of the result. This makes it easier to explain an unexpected response. The visible screen may be wrong because the input was interpreted incorrectly, because a rule was wrong or because the display was not updated as intended. Those are different questions, and the quiz example provides a manageable place to distinguish them.
Making state understandable
A quiz needs to remember more than the current expression on screen. The score, question progression and restart state all influence what happens next. Before changing a value, describe what it represents and which operation owns the change. A useful explanation says what should be true before and after an action. This is the foundation for the scoring and restart reading lab. It helps you look beyond a successful first answer and investigate whether repeated interaction follows the same rules.
Functions, files and responsibilities
The function and file sections introduce ways to organise work and information. A function should have an understandable input and result or a clearly described effect. A file operation involves information outside the immediate expression. Use those differences when explaining the recorded examples. If a calculation can be checked independently, do that before relying on the whole interface. A small responsibility is easier to test and easier to discuss than an event handler containing every rule and display decision at once.
Object-oriented ideas in a beginner context
The OOP material introduces classes, objects, methods and relationships. Connect those terms with the behaviour you are studying rather than treating them as proof that a design is sophisticated. What does an object represent? Which values belong to it? Which operation changes its state? A clear answer can help explain a small application and prepare you for later projects. This course offers an introductory foundation; it does not claim to cover every pattern or architecture used in professional C# systems.
Testing score and restart behaviour
The quiz reading workshop asks you to make those interactions predictable. A score should follow a stated rule, and restarting should establish the intended starting state. Write expected results for a correct answer, an incorrect answer and a restart after some play, as appropriate to your practice version. Compare observation with the rule. These are focused tests of behaviour, not a promise of a complete automated testing framework. Their usefulness comes from choosing an interaction that exposes an assumption.
Thinking about shared values
The introductory threading sections and shared-counter article broaden the discussion beyond a simple sequential picture. If more than one activity can affect a value, the design needs an explanation of how updates are coordinated. A single successful run does not prove that every ordering is correct. The reading exercise encourages you to recognise that question without presenting the course as advanced concurrency training. Keep the example's assumptions visible and seek further study before applying a small demonstration to a more demanding system.
Databases and your next C# step
The SQL material introduces stored data as another concern an application may have. It is a broadening of the foundation rather than complete database development. Choose this course if you want beginner C# concepts connected with a tangible project and reading exercises about behaviour. Use tooling compatible with the recorded desktop examples and allow for version differences. Aim to finish with a quiz whose state changes you can explain. That gives you a clearer basis for more projects, deeper language study or specialised work in data and asynchronous applications.
Curriculum at a glance
Introduction to C#
Variables & Data Types
If-Statements and Conditional Logic
Loops and Iteration
Arrays
Functions & Files
Object-oriented Programming
My First C# Project
Learn C# By Creating a Math Quiz Game
Start Coding
Introduction to Threads and Multithreading in C#
Managing and Using Data with SQL