What is a class?
Dear Student ,
As per the requirement submitted above , kindly find the below solution.
Class :
using System;
//C# class
class Trainer {
private int TrainerID;
private string TrainerName;
//constructor
public Trainer()
{
}
//class method
static void welcome() {
Console.WriteLine("Hello World");
}
}
NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.
Get Answers For Free
Most questions answered within 1 hours.