music1.ShowOnlyNameAndArtist();
music2.ShowOnlyNameAndArtist();
class Music
{
public string name;
public string artist;
public int duration;
public bool available;
public void ShowTechnicalDetails()
{
Console.WriteLine($"Name: {name}");
Console.WriteLine($"Artist: {artist}");
Console.WriteLine($"Duration: {duration}");
if(available)
{
Console.WriteLine("Available in the plan.");
}
else
{
Console.WriteLine("Buy the Plus plan.");
}
}
public void ShowOnlyNameAndArtist()
{
Console.WriteLine($"Name: {name}");
Console.WriteLine($"Artist: {artist}");
}
}