C# course "Welcome!" class example quiz
Hey guys, I just started the C# course and tried to solve the problem of the "Welcome" class example quiz. Unfortunately I don't know why it won't work correctly.... Here is the code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { class Welcome { public WelcomeMessage() { Console.WriteLine("Welcome to OOP"); } } static void Main(string[] args) { //create a Welcome object with the same name Welcome c = new Welcome(); c.WelcomeMessage(); } } } It should print "Welcome to OOP" but I only get the message that there is no input and no output. What do I do wrong? Thanks in advance Best regards Flo :)