10-02-25 ---------- Q)What is an object oriented programming language? =>A programming languange is said to be object oriented if it supports implement object oriented features. Q)What is an object oriented application? =>An object oriented application is a collection of objects most of which are polymorhic and related one another using has-a, is-a and use-a relationship. Q)What is a monomorphic object? =>If an object is behaving uniquely in all the contexts, it is known as monomorphic object. Q)What is a polymorphic object? =>If an object is behaving differently in different contexts, it is known as a polymorphic object. Encapsulation data security Inheritance code reusability Polymorphism extensibility of code Q)What is polymorphism? =>Polymorphism is one of the three object oriented features. =>"Poly" means many. "Morphism" means forms. I.e. Polymorphism means "many forms". =>One interface multiple forms is the key feature of polymorphism. =>An object behaving differently in different contexts for the same message(method call) is nothing but the object is exhibiting polymorphism Q)How is polymorphism classified? 1)static polymorphism 2)dynamic polymorphism =>In both the cases multiple methods have same name.But, the kind of binding decides the kind of polymorphism. Q)Example program to implement static polymorphism. =>MethodOverloading.java Q)Example program to implement dynamic polymorphism. =>DynamicMethodDisppatch.java