Answer Posted / 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 |
Post New Answer View All Answers
what is the main usage of an abstract keyword?please follow the program class A { void display() { System.out.println("hai"); } void print() { } } class B extends A { void print() { System.out.println("Hello"); } } In this program i was gives the implementation of print() according to my requirements in subclass.And there is no definition in superclass then why we can use abstract keyword before a method that i want to gives definition in other classes,is any mistakes in the above usage of method?
Write a program to find factorial of a number using functions
what is c sharp dotnet
What is the difference between COM and CORBA?
1.how to deploy the Maven application in weblogic server? 2.In Real time projects all classes are singleton or some classes only singleton explain? 3.what are the major uses of the designpatterns? 4.explain restful &Soap based services explain?
As per interoperatbility programs written in one language can be used by other language. How can we restrict the features of one language (say C#) in the programmer written in another language (say VB)..for example we have some features like operator overloading which is possible C#.NET (not in VB.NET), how can we restrict that when we are using this code in VB.NET.
how to add a new table with variables and thier values into a imported file uisng proc import?
I want to pass .pdf files as OlE Object to crystal report through VB6. Please any one guid me...
What is the first message line that any language learning prints on the screen? and why?
through which algorithm does the garbage collector works? how the garbage collector will understand that the object will going to be deleted?
It is possible to take number of controls added to form at run-time.ex-when user enter 6, 6 text boxes get added to form,next time number of controls get change as per user number enter. What is code for that?
what will we require to build project with the help of oracle
how to get second highest salary from a employee table and how get a 5th highest salary from a employee table by using proc sql?
how pseudo column works?
10.Define filters,binary to hexadecimal,hexadecimal to decimal?