Created
March 17, 2017 09:16
-
-
Save huhuang03/91394da2f0e3782384e18fdfbc10f317 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virual: A use virtual and B use override | |
A a = new B(); | |
a.foo() calls B.foo() | |
new: | |
just like override in java. Just let compier know I konw it override A's method | |
override: | |
use with virtual or abstract |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment