1 min read

Creating and calling methods Part 2 – Create the method

Now in our new class let’s write a method.

Next write a method. This method has the return type void.

        public void StartEngine()
            Console.WriteLine($"Wroom goes the {Color} motorcycle!");

Now in the last post we’ll initialize two object motorcycles and watch them go!

Leave a Reply