Topic: 抽象函数Person类

  Print this page

1.抽象函数Person类 Copy to clipboard
Posted by: 丫丫
Posted on: 2007-10-16 10:37

public abstract class Person
{
  public String name;
  public int age;
  public int id;
  public void print()
  {
    System.out.println("名字"+name);
    System.out.println("年龄"+age);
    System.out.println("身份证"+id);
  }
  public abstract void show();
  }

2.Re:抽象函数Person类 [Re: 丫丫] Copy to clipboard
Posted by: flytiger
Posted on: 2007-10-17 07:53

??

3.Re:抽象函数Person类 [Re: 丫丫] Copy to clipboard
Posted by: liuqianqian
Posted on: 2008-01-29 20:48

有什么问题吗?
你写的这些是什么意思啊?
是想说Person父类是什么吗?
你什么都没写,谁知道啊?
抽象类是可以被继承的,也可以继承其他类.


   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