Created
November 29, 2017 18:37
-
-
Save ShmuelMofrad/0e4c37cd5887e9a057bf3aa539eb9d27 to your computer and use it in GitHub Desktop.
You cannot extend a class that is marked as final - java
This file contains hidden or 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
public class MyClassCannotExtendFinalClass extends String{ | |
/* | |
* cannot subclass the final class String. | |
* String is a final class. | |
* You cannot extend a class that is marked as final. | |
* | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment