Professional Documents
Culture Documents
class Paint {
// all methods have same name
public void Color(int x) {
}
Method overloading
Constructor overloading
Method overriding
Run time polymorphism
Method overloading
Constructor overloading
Method overriding
None
3.class Father {
Father�s Car
Son�s Car
There is an ambiguity, so no one Car
Compiler Error
overloaded
loaded
unloaded
None of these
6.Which among the following is the language which supports classes but not
polymorphism?
a) SmallTalk
b) Java
c) C++
d) Ada
8.What do you call the languages that support classes but not polymorphism?
a) Class based language
b) Procedure Oriented language
c) Object-based language
d) If classes are supported, polymorphism will always be supported
10. Which class/set of classes can illustrate polymorphism in the following code: