Is Overriding applicable for Constructors in Java (Core Java Interview Question

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • In this session, I have explained about the possibility of overriding concept using constructors in Java. In Java, constructors overriding is not possible. As the name of the constructor created in the child class has to same as the class name and will be different from the name of the constructor in the parent class, hence there is no possibility of creating a duplicate constructor of parent class in the child class. But with methods, overriding is possible as we can create methods having duplication names, return types and parameters count and parameter types in the child class. I have also explained what is overriding and how constructor overriding is not possible in Java with practical demonstration in this session.
    Is Overriding applicable for Constructors in Java (Core Java Interview Question #493)
    For any doubts, live training updates, internship program and free Courses, please join our Telegram channel t.me/qafoxorig...
    View Notes Here - docs.google.co...
    Find all free full courses on Software Testing and Tools here - www.linkedin.c...
    Visit our website for more details here - www.qafox.com/

Комментарии • 1

  • @QAFox
    @QAFox  3 месяца назад

    For any doubts, live training updates, internship program and free Courses, please join our Telegram channel t.me/qafoxoriginal