2. The following C# code contains syntax errors. Identify the errors and write the correction opposite
to each line of code. If there is no error in a line, write NO ERROR.
using System;
class Car
{
public string model;
public string color;
public year;
public car(string modelName, string modelColor, int modelYear);
{
model = modelName;
soler = modelColo??
yere model Year;
}
static void Main(string args[])
{
}
Ford = new Car("Mustang", "Red", 1969);
Console.WriteLine(Ford.color+" "+ Ford.year+""Ford.model);
[7 Marks]
1. Briefly explain Abstraction in C#. What is an abstract method and Abstract class?Explain with an
example.
[7 Marks]
2. Compare the features of C#, Java programming languages. Use Google trendsto analyze the
popularity of these languages among the programmers in MiddleEast region. Provide
screenshots to justify your results.
[7
Marks]