Is subclass instance of superclass Java?

When one class inherits from another class in Java, the two classes take on certain roles. The class that extends (inherits from another class) is the subclass and the class that is being extended (the class being inherited from) is the superclass . In other words, the subclass extends the superclass .

Sizin İçin Seçtik  Should Instanceof be avoided?

Leave a Reply

Your email address will not be published. Required fields are marked *