Topic: overload dmeo 为什么得不到输出?

  Print this page

1.overload dmeo 为什么得不到输出? Copy to clipboard
Posted by: danni505
Posted on: 2008-11-22 17:20

public class Point {
  
  int x,y;
  
  Point(int a,int b){
    x=a;
    y=b;
  }
  
  void output(){
    System.out.println(x);
    System.out.println(y);
  }

  /**
   * @param args
   */
  public static void main(String[] args) {
    Point pt;
    pt=new Point(1,1);
    pt.output();
    
  }

}

2.Re:overload dmeo 为什么得不到输出? [Re: danni505] Copy to clipboard
Posted by: Joffeec
Posted on: 2009-01-03 01:28

会得不到输出吗??


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923