Method overriding and polymorphism in java
Polymorphism: poly–>many class customer { void Fillform(String name,int mob,String email) { ——– ——— } void Fillform(String name,int mob1,int mob2,String email) { ——– ——— } } class Bank { public static void main(String args[]) { Customer a=new Customer(); a.Fillform(“a”,123,"abc@gmail.com”); Customer b=new Customer(); b.Fillform(“b”,123,456,"def@gmail.com”); }} ———————— –>occur at compile time(Method overloading) —>occur at […]