Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

Why Java does not support multiple inheritances? tccicomputercoaching.com

The main reason is that when we declared a same method in different class and at the time of calling the method present at these classes the compiler gets confused which class method would be called so this may result the ambiguity occur in program and compiler throw a compile-time error. This is the main reason that java doesn’t support multiple inheritance.

java_multiple inheritance

In alternate of multiple inheritance java support interface.

To learn more about Java Programming, Interface, Inheritance, Computer etc.

Call us @ 9825618292

Visit us @ http://www.tccicomputercoaching.com

 

Leave a comment