Java

Program to Implements the Concept of Multiple Inheritance

By June 4, 2016 November 9th, 2016 2 Comments

/** Java Program to Implements the Concept of Multiple Inheritance **/

interface ab
{
void show();
}
class Bca
{
void get()
{
System.out.println(“welcome”);
}
}
class abc extends Bca implements ab
{
public void show()
{
get();
}
}
class multiple_inherit
{
public static void main(String a[])
{
abc m = new abc();
m.get();
}
}

Output:





Screenshot (298)

2 Comments

Leave a Reply to admin Cancel Reply