Java Super keyword

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 6

  • @ChristianGamo-fn9hf
    @ChristianGamo-fn9hf Рік тому

    Thank you ma'am for giving me more informations about java.

  • @nidornav729
    @nidornav729 Рік тому

    a detailed explanation of the "super" keyword in Java and how it can be used to call methods and constructors of the parent class. I learned h creating a subclass with a parameterized constructor. , a very helpful video

  • @JohnleeBasa-mq5jv
    @JohnleeBasa-mq5jv Рік тому

    Whenever there is a need to access superclass elements via their subclass counterparts in the Java programming language, developers can resort to using what is known as the "super" keyword. This feature enables them not only to retrieve fields and methods but also constructors from up above in terms of class hierarchy. In other words, even if a developer intends to execute some code inside their subclass constructor before invoking the corresponding method from a superclass constructor, they are able to do so using this technique.

  • @jinu_w
    @jinu_w Рік тому

    "Super" keyword in Java allows accessing superclass members from a subclass, useful for overriding methods and building complex software systems with inheritance. However, overuse may cause code complexity and coupling between classes, so it must be used with moderation and clear understanding of underlying concepts.

  • @yolandaoloteo9239
    @yolandaoloteo9239 Рік тому

    In Java, "super" is a special word that means "parent". It's used in a subclass to talk to its parent class. Imagine you have a toy car that's just like your dad's real car. Your toy car is like a subclass, and your dad's real car is like its parent class. If you use "super", you can do things like ask your dad's car to go faster or slower, or turn left or right. That way, your toy car can be just like your dad's car, but with some extra cool features that you add yourself!

  • @Kaloloytv7
    @Kaloloytv7 Рік тому

    In Java, "super" is a special word that means "parent". It's used in a subclass to talk to its parent class. Imagine you have a toy car that's just like your dad's real car. Your toy car is like a subclass, and your dad's real car is like its parent class. If you use "super", you can do things like ask your dad's car to go faster or slower, or turn left or right. That way, your toy car can be just like your dad's car, but with some extra cool features that you add yourself!