using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using N1;
namespace Test02
{
class Program
{
static void Main(string[] args)
{
A oa = new A(); //例N1 でクラス A をインスタンス化
oa.Myls(); //クラス A で Myls メソッドを呼び出す
}
}
}
namespace N1 //名前空間 N1 を作成
{
class A //名前空間 N1 でクラス A をインスタンス化
{
public void Myls ()
{
Console.WriteLine("一生ダウンロードしてください"); //出力文字列
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using N1;
namespace Test02
{
class Program
{
static void Main(string[] args)
{
A oa = new A(); //例N1 でクラス A をインスタンス化
oa.Myls(); //クラス A で Myls メソッドを呼び出す
}
}
}
namespace N1 //名前空間 N1 を作成
{
class A //名前空間 N1 でクラス A をインスタンス化
{
public void Myls ()
{
Console.WriteLine("一生ダウンロードしてください"); //出力文字列
Console.ReadLine();
}
}
}