In this video you will learn that what is multiple inheritance and how to implement it using interfaces in java.
Multiple inheritance in Java by interface
If a class implements multiple interfaces, or an interface extends multiple interfaces i.e. known as multiple inheritance.
interface Printable
{void print();
}
interface Showable
{void show();
}
class A4 implements Printable,Showable
{ public void print()
{ System.out.println("Hello");
}
public void show()
{ System.out.println("Welcome");
}
public static void main(String args[])
{ A4 obj = new A4();
obj.print();
obj.show();
}
}
www.tarunsir.com
www.cinstitute.org.in
Connect me on linkedin
/ tarrunverrma
Connect me on instagram
/ the_ultimate_coding_stuff
Follow me on twitter
/ tarrunverrma
Join my telegram channel
t.me/tarunvermasir
#tarunsir #javatutorial #learnprogramming #coding #java #interface
On this page of the site you can watch the video online multiple inheritance in java using interface with a duration of hours minute second in good quality, which was uploaded by the user Tarun Sir 01 January 1970, share the link with friends and acquaintances, this video has already been watched 504 times on youtube and it was liked by 13 viewers. Enjoy your viewing!