using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
public class student
{
public int a, b;
public student()
{
a = 0;
b = 0;
}
public void showdata()
{
Console.Write("a=" + a);
Console.Write("b=" + b);
}
}
static void Main(string[] args)
{
student s1 = new student();
s1.showdata();
Console.ReadKey();
}
}
}
/*Do leave a comment if you find this useful*/
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
public class student
{
public int a, b;
public student()
{
a = 0;
b = 0;
}
public void showdata()
{
Console.Write("a=" + a);
Console.Write("b=" + b);
}
}
static void Main(string[] args)
{
student s1 = new student();
s1.showdata();
Console.ReadKey();
}
}
}
/*Do leave a comment if you find this useful*/
No comments:
Post a Comment