Float VS Double Vs Decimal

  • Thread starter Thread starter PradeepGorli
  • Start date Start date
P

PradeepGorli

Guest
I Have a class named A which having three overloaded methods when i try to call in below manner which method will call first and why???

class Program
{
static void Main(string[] args)
{
A a1 = new A();
a1.demo(1.2);

}
}
public class A
{
public void demo(float a)
{

}
public void demo(decimal b)
{

}
public void demo(double b)
{

}

}

Continue reading...
 
Back
Top