Why do many programmers consider multiple inheritance to be a difficult concept?
What will be an ideal response?
Many programmers consider multiple inheritance to be a difficult concept, and when inexperienced programmers use it they encounter many problems. Programmers have to deal with the possibility that variables and methods in the parent classes might have identical names, which creates conflict when the child class uses one of the names. Also, you have already learned that a child class constructor must call its parent class constructor. When there are two or more parents, this task becomes more complicated: To which class should super() refer when a child class has multiple parents? For all of these reasons, multiple inheritance is prohibited in Java.
You might also like to view...
To insert a picture into a slide, you click the Picture button in the:
A) Pictures group on the Design tab. B) Illustrations group on the Design tab. C) Pictures group on the Insert tab. D) Illustrations group on the Insert tab.
The Macro Recorder uses absolute references by default
Indicate whether the statement is true or false
Which parameter is used with the rcapache2 command to verify that Apache is running?
A. start B. stop C. status D. restart
The firm allows no more than 10 hours of overtime a week. An employee entered "15" in the field. Which control will detect this error?
What will be an ideal response?