run time polymorphism for static and non static methods