-------------------
using System;
public class StrixUralensisClass
{
public static StrixUralensisClass Create()
{
Console.WriteLine("StrixUralensis[フクロウ]Class.Create()");
return new StrixUralensisClass();
}
}
-------------------
-------------------
using System;
public class BaseClass
{
public static BaseClass Create()
{
Console.WriteLine("BaseClass.Create()");
return new BaseClass();
}
public BaseClass Create2()
{
Console.WriteLine("BaseClass.Create2()");
return new BaseClass();
}
}
class MainClass
{
static void Main(string[] args)
{
Console.WriteLine("MainClass.Main()");
BaseClass.Create();
}
}
-------------------
-------------------
using System;
public class BaseClass
{
public static BaseClass Create()
{
Console.WriteLine("BaseClass.Create()");
return new BaseClass();
}
public BaseClass Create2() // 11 Line
{
Console.WriteLine("BaseClass.Create2()");
return new BaseClass();
}
}
class MainClass
{
static void Main(string[] args)
{
Console.WriteLine("MainClass.Main()");
BaseClass.Create();
BaseClass.Create2(); // 24 Line
}
}
-------------------