Tuesday, November 29, 2011
Core Java Interview Questions :Why does Java not support Multiple Inheritance?
java does not support multiple inheritance because different classes may have different variable with same name that may be be contradicted and can cause confusions resulting in errors.:confusion may not be the problem because we use interface for multiple inheritance so there we will mention function names so the primary reason may be the complexity of holding objects of different datatypes:so that one could get easy view by interfacethat program is using multiple inheritance.Hence to increase readability of code. :Java doesn&
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment