特牛网址导航

this 和 super-CSDN博客

网友收藏
文章浏览阅读188次。thisthis表示一个对象的引用,它指向正在执行方法的对象,在构造方法中,通过this关键字调用其他构造方法时,必须放在第一行,且只能通过 this 调用一次其他构造方法。public class Test_this_super { int id; String name; boolean man; double width; public Te...
标签:this 和 super