Modify class for Client that it only shows "Client creating" on screen for the object initialization only.
class Program
{
static void Main(string[] args)
{
// Example of program usage
Client client = new Client();
Console.ReadKey();
}
}
class Client
{
public Client() // Constructor that shows "Client creating" when initializing an object
{
Console.WriteLine("Client creating");
}
}
Comments
Leave a comment