Asked By: vas | Asked On: Sep 18th, 2005
Asked By: Interview Candidate | Asked On: Jun 24th, 2005
Answered by: Brijendra on: Sep 23rd, 2012
1) Inheritance is the concept where the child class can concentrate on new features that it want. because all the basic features it will get it from its parent class. 2) It is about re-usability of f...
Answered by: manisha chandani on: Aug 24th, 2012
Helps in reusability of code. Program development time is reduced. Helps as security purpose.
Inheritance is the process of creating new classes, called derived classes, from existing classes or base classes. The derived class inherits all the capabilities of the base class, but can add embellishments and refinements of its own.
Asked By: Interview Candidate | Asked On: Sep 8th, 2005
Answered by: shylu on: Jun 22nd, 2012
It is a process that one class can acquires the properties of another base class
Answered by: PaulSingh on: Feb 7th, 2012
Inheritance is the ability of once class to inherit the functionality of the base class and specialise it. Typically the relationship between the derived class and the base class is an "IsA" relations...
Asked By: Naresh | Asked On: Sep 12th, 2005
Answered by: sampra on: Mar 13th, 2012
java is build based on concept of no multiple inher to avoid memory usage and ambiguity too
Answered by: A.Bava Bahrudeen on: Sep 17th, 2011
Multiple inheritance does not support in java. Because, ambiguity has been involved in the multiple inheritance in C++ language. That means, a class access the same properties of more than one class....
Asked By: pradeeppk | Asked On: Sep 23rd, 2005
Answered by: gowtham on: Feb 28th, 2012
Creating a new classes from exiting classes
5 type
Answered by: ruchika arora on: Feb 27th, 2012
There are 5 types of inheritance: -
1. Single inheritance
2. Multilevel inheritance
3. Multiple inheritance
4. Hierarchical inheritance
5. Hybrid inheritance
Asked By: wproed | Asked On: Sep 22nd, 2006
Answered by: Nagu on: Feb 27th, 2012
Ans : B) 1 & 3 because private access member cant access by derived class. ref: http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8a.doc%2Flanguage%2Fref%2F...
Answered by: Rahul R Todekar on: Aug 12th, 2009
D) 1,2 & 3
Asked By: Interview Candidate | Asked On: Sep 2nd, 2005
Answered by: sony on: Nov 27th, 2011
Its not possible directly. That means this feature is not provided by Java, but it can be achieved with the help of Interface. By implementing more than one interface
Answered by: mohan b on: Nov 23rd, 2009
Only through Interface.
Asked By: sandeep | Asked On: Jun 13th, 2006
Answered by: Suresh Jayaraman on: Sep 27th, 2011
Inheritance: We can access the properties,fields,events methods from one class to another class. Polymorphism: There are two types of polymorphism. 1.Compile time polymorphism -- function overlo...
Answered by: george on: Aug 11th, 2011
When we create a new class which is derived from the existing class is called inheritance... This class is called as derived class and the existing class is called as base class.. Polymorphism is no...
Asked By: Interview Candidate | Asked On: Jun 24th, 2005
Answered by: amrutabhavana on: Sep 4th, 2011
Inheritance is acquiring properties of one class from another class, the class which is inherited is called base class and the class which acquir the properties is called derived class. eg: {geshibot...
Answered by: Amit on: Aug 18th, 2011
Inheritance is one of the cornerstones of object-oriented programming because it allows the creation of hierarchical classifications. Using inheritance, you can create a general class that defines tra...
Polymorhism: is a feature of oopl that at run time depending upon the type of object the appropriate method is called.Inheritance: is a feature of oopl that represents the "is a" relationship between different objects(classes). Say in real life a manager is a employee. So in oopl manger class is inherited...
Asked By: Interview Candidate | Asked On: Aug 28th, 2004
Answered by: subash on: Aug 6th, 2011
polymorphism: it is used to derive the class one in many form inheritance: deriving the neq class from the existing class encapsulation: hiding the information
(please do not answer like this-it is possible through interfaces.)
Asked By: Rohit Sharma | Asked On: Apr 21st, 2006
Answered by: sajad on: Jul 19th, 2011
True http://msdn.microsoft.com/en-us/library/system.object.gethashcode.aspx
Answered by: Ankit Seth on: Jul 11th, 2011
I don't think that overriding will be a problem if you define your generic interface in a good manner.I've written that multiple inheritance is avoided to prevent the identity crisis. So it is...
Asked By: swati | Asked On: Sep 30th, 2005
Answered by: pallabi87 on: May 16th, 2011
this is so because it leads to a problem called "dirty diamond".that is, say class B and C inherit from class A.class B and C might override the methods in A.Now if D inherits from B and C(multiple in...
Answered by: mundravijay on: Dec 7th, 2009
Due to the naming complexity in Base & Drived classes,We Can't provide a solution every time using Inheritance with same name of member,methods.That's why It's not allowed in JAV...
Asked By: Amit | Asked On: Jan 16th, 2006
Answered by: Pendurti on: Sep 11th, 2008
Well C# doesn't support multiple inheritance through classes.If you want to have multiple inheritance in your program, you need to make use of interfaces. A class cannot inherit from mor...
Answered by: Mob: +91 9849255958 on: Jan 4th, 2007
Actually, GC is a low-level thread. When it gets activated, all other threads in the applications are put on hold.
Asked By: tanish | Asked On: Feb 19th, 2007
Answered by: yzesong on: Jul 30th, 2009
As long as no diamond problems (improper inheritance), single or multiple inheritance can all be proper inheritance. When usng multiple inheritance with diamond problem, you can use virtual inhe...
Answered by: michaelpyles on: Dec 28th, 2007
Proper inheritance occurs when the derived class "IS A" specialized type of the base class. Example Cat IS A Animal. Improper inheritance occurs when a class is inherited from merely f...
Asked By: anuradha | Asked On: Jun 6th, 2006
Answered by: vinaymudgil007 on: Mar 21st, 2011
Inheritence means --> "is-a" relationshipe.g. HONDA CITY is-a CARAggregation means --> "has-a" relationshipHONDA CITY has-a engineHope this ...
Answered by: navneetgoyal2000 on: Jan 5th, 2011
If we have to explain it with example, then Inheritance (IS A or TYPE OF) & Aggregation (HAS A) can be understood as:a CAR IS A (an) Automobile. (Inheritance: Car inherits its properties fr...
Skill/topic: inheritancea) trueb) false
Asked By: Interview Candidate | Asked On: Jan 9th, 2006
Answered by: nverma on: Feb 17th, 2011
False, Java doesn't support multiple inheritence..
C++ supports multiple inheritence
Answered by: Hemasenthil on: Jun 18th, 2008
via interface implementation
A) using extends keywordb) using imports keywordc) using override keywordd) none
Asked By: Interview Candidate | Asked On: Dec 4th, 2005
Answered by: huuchung on: Jan 4th, 2011
D/ none of above
Answered by: ptharak on: Jun 30th, 2010
by using inherits keyword
class sampl2
inherits sample1
Polymorhism: is a feature of oopl that at run time depending upon the type of object the appropriate method is called.Inheritance: is a feature of oopl that represents the "is a" relationship between different objects(classes). Say in real life a manager is a employee. So in oopl manger class is inherited...
Asked By: Interview Candidate | Asked On: Aug 28th, 2004
Answered by: gvjava on: Dec 8th, 2010
We can't create the object directly for the abstract classes,we can create object indirectly when we are inheriting that is called as polymorphism. ex: abstract class man ...
Answered by: veenanimbalkar on: Dec 6th, 2010
Polymorphism is the major pillar of OOPs and Java. There are two types of polymorphism static time polymorphism & dynamic type of polymorphism. Static time polymorphism is called as" method overloa...
Asked By: Amalesh Jana | Asked On: Jun 7th, 2006
Answered by: dkjena4u on: Sep 7th, 2010
Delegation is an alternative to inheritance in Java. Kavita has provided useful information, but a peice of code snippet could have been more useful.
Answered by: sampra on: Mar 11th, 2008
IS A relation ship is the alternative of inheritance
Asked By: Deep | Asked On: Sep 30th, 2007
Answered by: rubin2008 on: May 10th, 2010
PHP supports only single inheritance.But multiple inheritance can be implemented in php through use of interface
Answered by: akki517 on: Dec 4th, 2009
PHP Supprots only single inheritences
Answered by: Nitin Kumar Singh on: Mar 7th, 2013
In Java we have the concept of Super() class. A class may have more than one super class. If there would be Multiple Inheritance then the super() class would be confused which one to refer and so we d...
Answered by: pmetha2 on: Jan 3rd, 2013
Actually,Multiple Interfaces are inherited but by inherting them,we wont get any defination(its just a blank body). so, Java supports Multiple Inheritence is a Myth.Its just an illusion.
16 answers