0

For example, I have a class that says

public class KeyList extends Vector<Object> {
}

but it never specifically creates a new Vector of any kind. This is part of an implementation of Eliza that I found online


You need to amend your htaccess file to strip out index.php in order to be able to access it at www.mysite.com/home. You also need to set the value of index_page to '' in the config file.

Take a look at the CodeIgniter documentation on URLs for an example of how to do this.

4

2 に答える 2

4

extendsであることを意味しKeyList ます Vector。(必ずしも) KeyList has-a Vectorという意味ではありません。

詳細については、Java チュートリアルを参照してください。具体的には、継承とは何ですか? および継承セクション

于 2013-10-28T17:54:36.080 に答える
0

それは継承についてです:KeyListのサブクラスであることを意味しVector<Object>ます。本質的には、それ自体KeyListが変更されていることを意味Vector<Object>します。詳細については、継承に関するOracle のドキュメントを参照してください。

于 2013-10-28T17:55:53.437 に答える