--%>

Differentiate overriding and overloading method

Differentiate overriding and overloading method?

E

Expert

Verified

Overriding involves the formation of more than two methods through similar name and similar signature in dissimilar classes. One of them must be a child class and other must be parent class.

Overloading is use the method at different places through similar name and dissimilar signatures inside the similar class.

   Related Questions in Programming Languages

  • Q : Define Capability Normal 0 false false

    Normal 0 false false

  • Q : Explain the relationship between XHTML

    Explain the relationship between XHTML and URL?

  • Q : Networking Homework Assignment : A

    Homework Assignment : A Barbershop Problem Due: November 20, 2012 In this assignment, you are asked to write a multithreading problem to simulate the barbershop problem, which is a classical synchronization problem. The problem is taken from William Stallings's Operating Systems: Internals and D

  • Q : Determine a web page element which

    How can I determine a web page element which contains exact text?

  • Q : Explain Constructor Constructor : A

    Constructor: A constructor is automatically called whenever an instance of its class is formed. A constructor always has similar name as its class, and encompass no return type. For example: public

  • Q : Explain the term XForms Explain the

    Explain the term XForms.

  • Q : Define Race hazard Race hazard : It is

    Race hazard: It is a situation which occurs between multiple threads sharing a resource. The race hazard occurs whenever one thread's suppositions regarding the state of a resource are invalidated by the actions of the other thread.

  • Q : What are Relational operators

    Relational operators: Operators, like <, >, <=, >=, == and!=, which produce a Boolean outcome, as portion of a Boolean expression.

  • Q : What is Factory pattern Factory pattern

    Factory pattern: A pattern of class definition which is employed as a generator of instances of other classes. Frequently employed to form platform- or locale-particular implementations of abstract classes or interfaces. This decreases coupling betwee

  • Q : Define Final class Final class : This

    Final class: This is the class with final reserved word in its header. A final class might not be extended by the other class.