Example
abstract class Student
{
public abstract void Name();
}
class Student_Details:Student
{
public override void Name()
{
Console.WriteLine("Kulshresth Kumar");
}
}--------------------------
class Program
{
static void Main(string[] args)
{
Student_Details obj = new Student_Details();
obj.Name();
Console.ReadLine();
}
}
{
public abstract void Name();
}
class Student_Details:Student
{
public override void Name()
{
Console.WriteLine("Kulshresth Kumar");
}
}--------------------------
class Program
{
static void Main(string[] args)
{
Student_Details obj = new Student_Details();
obj.Name();
Console.ReadLine();
}
}
No comments:
Post a Comment