Does the {0} represent the first argument "numerator" and {1} represent the second argument "denominator" passed to parameters of the writeLine method?
Another question is why does the method say argument #1 and #2 are objects? Integers are primitive data types.
I come from a Java background so the method description seems confusing.
using System;
struct Fraction
{
public int denominator;
public int numerator;
public void Print()
{
Console.WriteLine("{0}/{1}", numerator, denominator);
Console.ReadKey();
}
}
public class structTest
{
public static void Main()
{
Fraction f;
f.numerator = 8;
f.denominator = 6;
f.Print();
}
}