Difference between Overloading and Overriding

 

->Overloading:
    Two methods are said t be overloaded if and only if both methods having
    same name but different argument types.

    class Test{
        public void m1(int i){

        }
        publicvoid m1(long l){

        }
    }

 ->Overriding:  
    What ever methods parent has, by default will be available to the child
    through inheritance.
    But some times child may not satisfy with parent method implementation.
    Then child is allowed to redefine that method based on its requirement.
    This proces is known as Overriding.


 Note:
    In overloading we have to chekc only method names(must be same) and
    argument types(must be different) except this the remaining like
    return types, access modifiers etc.; are not required to check.

    But in overiding every thing we have to check like method name,
    argument types return types, access modifiers etc.


Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...