Online Examination System for all learner!!! coming soon..

JAVA : Program to demonstrate concept of Polymorphism (Overriden).

 demonstrate concept of Polymorphism (Overriden).

Sourse Code:

class Funcover

{

public void calc(int x,int y)

{

int z;

z=x*y;

System.out.println("multiplication="+z);

}

}

class Override extends Funcover

{

public void calc(int x,int y)

{

int z;

z=x/y;

System.out.print("division="+z);

}

}

class Overrideex

{

public static void main(String arg[])

{

Funcover f1=new Funcover();

f1.calc(7,6);

Override f2=new Override();

f2.calc(14,2);

}

}

Output:

multiplication=42

division=7 

C Programming Online Test 1

Following quiz provides Multiple Choice Questions (MCQs) related to C Programming Framework. You will have to read all the given answ...