Java Bangla Tutorials 133 : Why Interface Support Multiple Inheritance ?

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you sir akmatro aper video dekhe kohono bored hoina ❤❤👌👌

mdrakibul-gifn
Автор

Dear Anisul Bhai Bhai, I am your fan, I watched your other video series too (Android), Just mind blowing. How easy and clearly you explain many difficult topics which many authors bubbling around in their books. I started watching your java series too and feeling the same. May Allah bless you and help you to do more videos like these for other areas too such as SYSTEM ANALYSIS AND DESIGN.


Also I would be more than happy to know the difference between inheritance and delegation in java- if you could explain (or give some ref please). Thanks for your cooperation

mizan
Автор

All vedio are very helpful and understand everything superbly. Thanks sir. Take love

muhammadmuhtasim
Автор

package Inherance;

public interface A {

void play();
}

package Inherance;


public interface B {
void play();
}
package Inherance;


public class C implements A, B {

public void play(){

System.out.println("I m from C");
}


}

package Inherance;


public class Test {

public static void main(String[] args) {
C ob=new C();
ob.play();
}

}

susmita
Автор

Sir, Multi threading niye class diten jodi 🙏🙏🙏🙏

md.billalhosen
Автор

package
public interface A {
void display();
}

package
public interface B extends A {
@Override
void display();
}

package
public class C implements A, B{
@Override
public void display() {
System.out.println("Hi!! Here is the proof that Interface supports multiple inheritance.");
}
}

package
public class Test {
public static void main(String[] args) {
C ob=new C();
ob.display();
}
}

mdshamsulalammomin
Автор

package

public interface Water {
void survival1();

}


package

public interface Land {
void survival2();

}


package

public class Frog implements Water, Land{
public void survival1() {
System.out.println("Hi, I am from Water.");
}
public void survival2() {
System.out.println("Hi, I am from Land.");
}

}


package

public class Test {
public static void main(String[] args) {
Frog f1=new Frog();
f1.survival1();
f1.survival2();

System.out.println("But Haha: What Best Creature, Human Can't");
}
}

proudindo
Автор

method এর আগে public use না করলে কি হবে ???

AbdullahalMamun-idky