That is to say, it would become a multiple inheritance situation, which isnât supported in Java. Moreover, even if we could create the ExtendedStringOperation enum to inherit BasicStringOperation, our ExtendedStringOperation enum would extend two classes: BasicStringOperation and. ![]() Public static final .BasicStringOperation REVERSE Īs we know, we canât inherit a final class in Java. Public static final .BasicStringOperation TO_UPPER It is for use by code emitted by the compiler in response to enum type declarations. Programmers cannot invoke this constructor. Object getClass, notify, notifyAll, wait, wait, wait Constructor Detail Enum protected Enum ( String name, int ordinal) Sole constructor. Public static final .BasicStringOperation TRIM Method Summary Methods inherited from class java.lang.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |