Calling a method inside another method in same class

前端 未结 5 813
北海茫月
北海茫月 2020-11-29 03:25

In page 428 (the chapter about Type Information) of his \"Thinking In Java, 4th Ed.\", Bruce Eckel has the following example:

public class Staff extends Arra         


        
5条回答
  •  执念已碎
    2020-11-29 04:03

    It is just an overload. The add method is from the ArrayList class. Look that Staff inherits from it.

提交回复
热议问题