Message 1 of 5
Error message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello guys
I am facing a problem with my learning example , can anybody have a look at the codes and why I have that warning message and how to fix this ?
Here is the C# codes :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClassLibrary2
{
class car
{
int id;
string color;
string model;
public void usage(int id, string color, string model)
{
id = id;
color = color;
model = model;
}
public void showme()
{
Console.WriteLine("ID is : {0} \n Color is : {1} \n Model is : {2}", id, color,model);
}
}
public class Class1
{
static void main(string [] args)
{
car mycar = new car();
mycar.usage(10, "Black", "BMW");
mycar.showme();
}
}
}
Thanks in advance .