
Download Visual Studio Code, write your first C# program, and explore namespaces, classes, methods, objects, and types while practicing variables, data types, access modifiers, constructors, overloads, quizzes, and activities.
Navigate udemy courses effectively by using playback controls, adjusting speed and volume, selecting subtitles and video quality, and accessing course content, resources, notes, q&a, and certificates.
Learn to install Visual Studio Code, configure a project folder, and add essential extensions, including C# Dev Kit, C# extension, Net Install Tool, and IntelliCode, to start writing C# programs.
Create your first C# console app by generating a new project, inspecting dot cs and dot csproj files, writing hello world as a string, and running with dotnet run.
Learn about namespaces, classes, methods, and types; create objects from classes and structure programs with a main method and implicit usings for simple console output.
Explore the integral data types in C#: byte, short, int, and long, their ranges and storage sizes, and how signed versus unsigned variants affect memory use.
Explore floating-point data types in C#: float, double, and decimal, including literal suffixes f, d, and m, precision limits, and how to choose the right type for your data.
Explore four non-numeric data types in C#: bool, string, char, and date time, including true/false, quoted strings, single-quoted chars with unicode, and date time values.
declare four variables in a beginner c# practice activity, choosing string, int, and floating point types, and demonstrate outputs like hello John Smith and program numbers with 9.75 minutes.
Learn to define a class with methods and properties, create an instrument object with new, and call its play and tuning methods from code.
Explore private, protected, internal, and public access modifiers and how they govern visibility within a class, in derived classes, and across assemblies, with instrument and banjo class examples.
Learn to pass values to new objects in C# with object initializers using curly braces, initializing type of instrument and age at creation.
Move the static and instrument classes to a new cs file, and use namespaces or using directives; implement nullable strings and default values, plus a static instrument counter.
Practice activity 4 demonstrates implementing a vehicle class in C# with a get/set property backed by a nullable private field, a parameterized constructor, and testing the fish name.
Review the study guide, complete practice activities, and take the free Microsoft assessment. Log in, retry after 72 hours if needed, and share your credential on LinkedIn or your CV.
Welcome to my course on "Get started with classes, properties, and methods in C#".
Please note: This course is not affiliated with, endorsed by, or sponsored by Microsoft.
I’ll show you how to download Visual Studio Code onto your machine for free, to give you practical access when you need it.
We’ll start with creating our first C# program, and see the principles behind namespaces, classes, methods, objects and types.
We’ll then explore variables. We’ll create different types of variables, and look at integral data types, floating-point data types, and other types of variables.
After that, we’ll look at creating classes. We’ll see how we can create an object from a class, add properties and methods to the class, and identify appropriate access modifiers.
Finally, we’ll look at creating objects. We’ll add constructors and pass other values to our classes, and look at nullable and default values, and overloading methods and constructors.
No prior knowledge is required - we'll even see how to get Visual Studio for free!
There are regular quizzes and practice activities to help you remember the information, so you can be sure that you are learning.
Once you have completed this course, you will have a good introductory knowledge of C#, and perhaps even take the official Microsoft Applied Skills assessment. That would look great on your CV or resume.