I have this...
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Please enter name of DVD");
object objectname = Console.ReadLine();
Program2 myob = new Program2(objectname);
}
public int number = 0;
public string myString = "DVD";
public double myDouble = 2.0;
}
class Program2
{
public Program2(object objectname)
{
objectname = new Program();
}
}
I want an object to be made with the name of the title of the DVD that the user inputs, so for example I type in "the matrix" I want an object named this to be created that will hold it's different attributes..
How would I go about this?