Question: what is the main similarity and main difference between function overloading and function overriding?
Answer: 1) Function Overloading happens in the same class when we declare same functions with different arguments in the same class. Function Overriding is happens in the child class when child class overrides parent class function.