Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


whats is inheritance?

Answers were Sorted based on User's Feedback



whats is inheritance?..

Answer / priyabrata patro

inheritance , name only mentions here that inherit.Listen inherit means it can be occupied by another one like father properties go to his sons, observer some automobiles you can get inheritance meaning there only ,like hero honda passion and passion plus , so , there are a lot of instance available which are related to inheritance.
So, inheritance is nothing but ,in programming language, occupying the properties of one class by another class.
for instance
public class Idemo{
public staic void m(){}
public void m1(){}
}
public class Idemo1 extends Idemo
{
public static void main(String args[]){
Idemo1 i=new Idemo1();
i.m();
i.m1();
}
}
but here it can not be called as inheritance
interface I{void fun1()}
interface I1
{void fun();}
interface I2 extends I,I1
{}

Is This Answer Correct ?    0 Yes 0 No

whats is inheritance?..

Answer / mukthiyar

Inheritance is a Reusable of the existing code.

There are two types of Inheritance implementation
Inheritance and interface Inheritance.

Implementation inheritance promotes reusability but improper
use of class inheritance can cause programming nightmares by
breaking encapsulation and making future changes a problem.
With implementation inheritance, the subclass becomes
tightly coupled with the superclass. This will make the
design fragile because if you want to change the superclass,
you must know all the details of the subclasses to avoid
breaking them. So when using implementation inheritance,
make sure that the subclasses depend only on the behavior of
the superclass, not on
the actual implementation.

Interface inheritance promotes the design concept of program
to interfaces not to implementations. This also reduces the
coupling or implementation dependencies between systems. In
Java, you can implement any number of interfaces. This is
more flexible than implementation inheritance because it
won’t lock you into
specific implementations which make subclasses difficult to
maintain. So care should be taken not to break the
implementing classes by modifying the interfaces.

Is This Answer Correct ?    0 Yes 0 No

whats is inheritance?..

Answer / venkat

Inheritance is one of the method to inherit the properties
of existed class to the new class.

Is This Answer Correct ?    0 Yes 0 No

whats is inheritance?..

Answer / manoj kumar

Inheritance is the process of extending one class from another class to get its functionalities.

Is This Answer Correct ?    0 Yes 0 No

whats is inheritance?..

Answer / kalpana

Inheritance is the process of acquiring the details from
the derived classes.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More Core Java Interview Questions

Can we sort hashmap in java?

0 Answers  


How do you convert bytes to character in java?

0 Answers  


How list contains works in java?

0 Answers  


Hi, This is ravi i have a question like this i have string "UNDERSTAND" now i want to count the letters how many times it occures.i.e from the above string the out put should be like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1. how can i achieve this Thnaks in advance for your response ..

7 Answers  


What is the this keyword?

0 Answers  


What is the Set interface?

2 Answers  


What do heavy weight components mean in java programming?

0 Answers  


tell me some common

2 Answers   TCS,


What is the difference between the synchronized() & static synchronized()?

2 Answers   HP, SparkTG,


How the interruptible method gets implemented?

0 Answers  


How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }

1 Answers  


What types of index data structures can you have in java?

0 Answers   Tech Mahindra,


Categories