0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

オーバーライド

Posted at

オーバーライドはスーパークラスで定義したメソッド等をサブクラスで再定義する事です。

オーバーライドの方法は、スーパークラスで定義したメソッド等と同じ名前のメソッドを定義し、動作を記入する事です。

これを利用する事によって継承の際に、内容の修正が必要な部分だけを、サブクラス側で上書き出来る為、クラスの再利用やプログラムの簡略化が見込めます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?