c# Create a constructor for the WordCounter class that accepts the name of the file as a parameter. Store the file name in a class property. code example
Example 1: c# constructor
public class Person
{
private string last;
private string first;
public Person(string lastName, string firstName)
{
last = lastName;
first = firstName;
}
// Remaining implementation of Person class.
}
Example 2: how to start a constructer c#
public static void Main()
{