To explicitly call the superclass constructor from the subclass constructor, we use super() . It’s a special form of the super keyword.
How do you call a constructor of superclass in subclass?
To explicitly call the superclass constructor from the subclass constructor, we use super() . It’s a special form of the super keyword.
Leave a Reply
How do you call a constructor of superclass in subclass?
To explicitly call the superclass constructor from the subclass constructor, we use super() . It’s a special form of the super keyword.