answersLogoWhite

0


Best Answer

Inheritance is the java feature by which the functionality of a parent class is inherited by the child class.

Inheritance does not help create new classes instead it avoids creation of duplicate classes. We can re-use classes using Inheritance.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

hdhvkdhkf df dfhdfjfue fd jdhdk

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is inheritance how does it help us create new classes?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What supports reusability and extensibility of classes in c plus plus?

There are two ways to reuse a class in C++. Composition and inheritance. With composition, any class data member can be an instance of an existing class. With inheritance, we can derive a new class from an existing class. Either way, we create a new class of object with all the properties of the existing class which can be extended and/or replaced with properties of our own.


What is meant by inheritance?

In computer programming, inheritance means to derive a new object from an existing object, such that the new object inherits all the properties of the existing object. In object oriented programming, derived classes inherit the public and protected members of their base classes. This allows new classes to be created from existing classes, without the need to duplicate large chunks of code in the existing class. The new class can augment the inherited code to provide more specific behaviour.


How do you implement inheritance in c plus plus?

You implement inheritance by deriving a new class of object from an existing class of object. The existing class is known as the base class of the derived class.Classes declared final cannot be used as bases classes and classes without a virtual destructor (or a virtual destructor override) cannot be used as polymorphic base classes.


What is the use of new operator?

A new operater is used to allocating a memory space for a particular object.


Why Inheritance is required in java?

OOP, is to write software in objected-oriented fashion. It will be very difficult to do this with a non-objected oriented computer language. Any objected oriented computer language must have INHERITANCE feature to be an OO language. Actually, to be called object-oriented of anything, inheritance is a must. Without inheritance, it will not be OO (of anything).Like any feature, characteristic, or property of "something" (oop in this question), the "importance" may only be concluded or derived from understanding it and perhaps even applying it. Inheritance is built into OOP, try to apply it, then you will understand its importance and perhaps discover its weakness!

Related questions

What supports reusability and extensibility of classes in c plus plus?

There are two ways to reuse a class in C++. Composition and inheritance. With composition, any class data member can be an instance of an existing class. With inheritance, we can derive a new class from an existing class. Either way, we create a new class of object with all the properties of the existing class which can be extended and/or replaced with properties of our own.


Why do you create an object in programmig language?

Objects allow you to create new data types. They also help you separate parts of the program, and give additional benefits, such as being able to use the powerful concept of inheritance.


What is meant by inheritance?

In computer programming, inheritance means to derive a new object from an existing object, such that the new object inherits all the properties of the existing object. In object oriented programming, derived classes inherit the public and protected members of their base classes. This allows new classes to be created from existing classes, without the need to duplicate large chunks of code in the existing class. The new class can augment the inherited code to provide more specific behaviour.


What is the importance of inheritance in java programming?

Inheritance is one of the most important features of any object oriented programming language such as Java. This is because it makes easier to build new classes from existing classes without necessarily having to rewrite the same lines of code.


How do you implement inheritance in c plus plus?

You implement inheritance by deriving a new class of object from an existing class of object. The existing class is known as the base class of the derived class.Classes declared final cannot be used as bases classes and classes without a virtual destructor (or a virtual destructor override) cannot be used as polymorphic base classes.


help me create an account?

ok what do you want your user and pass


What is the use of new operator?

A new operater is used to allocating a memory space for a particular object.


Why Inheritance is required in java?

OOP, is to write software in objected-oriented fashion. It will be very difficult to do this with a non-objected oriented computer language. Any objected oriented computer language must have INHERITANCE feature to be an OO language. Actually, to be called object-oriented of anything, inheritance is a must. Without inheritance, it will not be OO (of anything).Like any feature, characteristic, or property of "something" (oop in this question), the "importance" may only be concluded or derived from understanding it and perhaps even applying it. Inheritance is built into OOP, try to apply it, then you will understand its importance and perhaps discover its weakness!


How do you create a new article on Wikipedia?

The template for a new page is at Editing Help.


What does advertising fashion trends and new product introductions help to create?

create consumer needs


When to use inheritance in c plus plus?

You use inheritance whenever you need a more specialised version of an existing class (the base class). Rather than creating a new class entirely from scratch, and therefore duplicating tried and tested code, you simply build upon the existing class, overriding the existing methods and adding more specialised methods, whilst retaining all the generic functionality of the base class.


Do neurotransmitters help to create new action potential?

Yes.