Java4teachus

Tuesday, August 07, 2018

Definition of Method Overriding

Method overriding 

In previous post we already learnt about on the MethodOverloading concept. Now we discuss on about the Method Overriding in Java.  

A Method is said to be overriding if and only if  Method Heading is same and the method body is different then it is called Method Overriding.
                                                    (or)
The process of predefined the original method for performing different type of is called "Method Overriding".

Definition :-

Method heading is same  +  Method body is different  then it is  called the Method Overriding.

Example :- 

Method-Overriding-in-java.png

In the Example of Method Overriding, Method Heading is same but the Method Body is Different  is called Method Overriding.
          

3 comments:

  1. It’s useful as
    informational ,could been better with ullistrative explanatory facts.

    ReplyDelete
    Replies
    1. yes,its so very useful to the learners.
      thank you serigne

      Delete
  2. Fabulous post. Please read my first post. rehanaexperience.blogspot.com

    ReplyDelete

Thanks for visiting my site..