Sie sind auf Seite 1von 2

using System;

namespace OOPs
{
class Overloading
{
static int volume(int x)
{
return (x * x * x);
}
static double volume(float p, int q)
{
return (3.14519 * p* p*q);
}
static long volume(long m, int b, int q)
{
return (m* n * q);
}
public static void Main(string[] args)
{
Console.WriteLine("Volume is:"+volume(7));
Console.WriteLine("Volume is:" + volume(5.5F,4));
Console.WriteLine("Volume is:" + volume(100L,65,15));
Console.ReadKey();
}
}
}

OUTPUT:

Das könnte Ihnen auch gefallen