Home   Cover Cover Cover Cover
 

Namensräume

A01.cs
namespace A {
  
  public struct Time {
    public int h;
    public int m;
    public int s;
    
    public Time(int h, int m, int s) {
      this.h = h; this.m = m; this.s = s;
    }
    
    public override string ToString() {
      return h + ":" + m + ":" + s;
    }
  }
  
}

namespace B {
  
  using System;
  using A;

  public class Test {

    public static void Main() {
      Time t = new Time(3, 20, 15);
      Console.WriteLine(t); 
    }
  }
  
}