Object-Oriented Programming (CS F213) : BITS Pilani
Object-Oriented Programming (CS F213) : BITS Pilani
Method Signatures
Polymorphism
Polymorphism Types
class MethodOverloadingExample
{
int doS(int a, float b) {} doS(int , float)
class A
{
public int print(int x)
{
System.out.println(Hello Class A);
return 0;
} Method Overloading
}// End of class A
class B extends A
{
public void print()
{
System.out.println(Hello Class B);
} No Error Not Method
}// End of class B Overriding
11 Object-Oriented Programming (CS F213) Dr. Pankaj Vyas
Thank You