LoginSignup
0
1

More than 5 years have passed since last update.

Visual Studio / WPF > 04 复习继承和类型转换 > 継承関連

Last updated at Posted at 2017-05-08
動作環境
Windows 7 Pro (32bit)
Microsoft Visual Studio 2017 Community
Sublime Text 2

AnimalクラスからDogクラスを継承で作る例。
senderからButtonに型変換することと関連して紹介しているようだ。

Animal al = new Dog();
Dog dl = al;

AnimalにメソッドJian()を追加した場合や、DogにメソッドBark()を追加した場合などの紹介。

暗黙の型変換など紹介しているかは不明。

スライス問題については議論していなさそう。

中国語

复习(fùxí)
http://cjjc.weblio.jp/content/%E5%A4%8D%E4%B9%A0

復習する

0
1
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
1