Why multiple inheritance is removed in java?
Answers were Sorted based on User's Feedback
Answer / jasmeet singh
coz multiple inheritence can lead to ambiguity in the child
class...
say , for example if two different class use same name for
any variable or constant and those classes are inherited by
any child class, then those variables or constants with same
name will create ambiguity in the child class
| Is This Answer Correct ? | 12 Yes | 1 No |
Answer / vijayan.s
It's not completely removed. only one class can be extended
if more than one class should be inherited by using
implement.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vijay.r
becoz we cant able to inherit more than one base class java.
| Is This Answer Correct ? | 1 Yes | 7 No |
In JCl , we have COND parameter.This holds comparison code and condition.It also has only and even parameters. ex: COND((4,GE),EVEN).what the comma mean here. is that 'and' or 'or'.
Q1.Write a C program which asks the user for a number between 1 to 9 and shows the number. If the user inputs a number out of the specified range, the program should show an error and prompt the user for a valid input.
One boy has to climb steps. He can climb 1 or 2 steps at a time. Write a function that will returns number of way a boy can climb the steps. Int WaytoSteps(int n) (eg:- suppose number of steps is n=4 ,the function will return 5 (one-one-one-one ,one-one-two, one-two-one-,two-one-one, two-two)
major characteristics of software system
the systematic access of small computers in a distributed data processing system is referred as?
How to convert numeric value into words in c#????plz suggest me the coding of this question???
what are the top level class of interface in java?
How to call static method in Java?
how can we get version of database ?
How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?
What is the purpose of <Trigger> element of <updatePanel> in Ajax
This is the portal and portlet interview question API: is JSR 168 API Server: is ibm web sphere portal server6.0 IDE: is RAD 7.0 Question:In normal struts what is the actionservlet? Ans:org.apache.struts.action.ActionServlet. But What is the actionservlet in strutsportlet?