Creating and calling methods in C# Part 1 – Create a class
1 min read

Creating and calling methods in C# Part 1 – Create a class

Let’s learn about methods in C# from here.

First create a class called Motorcycle.

Write the code for the class with a property for Color.

    class Motorcycle
    {
        public string Color { get; set; }
    }

Now in the nest post we’ll write the method!

Leave a Reply