Calling a method from abstract class
calling a method from abstract class
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Memory_understanding
{
//calling a method from abstract class
abstract class myClass
{
public static void myMethod()
{
Console.WriteLine("Hello World from abstract class");
}
}
class program
{
public static void Main()
{
myClass.myMethod();
Console.ReadLine();
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Memory_understanding
{
//calling a method from abstract class
abstract class myClass
{
public static void myMethod()
{
Console.WriteLine("Hello World from abstract class");
}
}
class program
{
public static void Main()
{
myClass.myMethod();
Console.ReadLine();
}
}
}
Comments
Post a Comment