ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
What if we don't have same method names in both the classes?
Even then we cannot use multiple inheritance because a developer might later add methods with same name intentionally or unintentionally in that case program will fail so to avoid this scenario multiple inheritance is not supported in java.
What is diamond problem?
What if we don't have same method names in both the classes?
Even then we cannot use multiple inheritance because a developer might later add methods with same name intentionally or unintentionally in that case program will fail so to avoid this scenario multiple inheritance is not supported in java.
What is diamond problem?