answersLogoWhite

0

Inheritance allows classes to be reused by creating a direct relationship superclasses and subclasses. By allowing a subclass to inherit from a superclass, less code is required to develop new subclasses. Hence how the term reuse comes into play. A subclass is essentially "reusing" what has already been developed in the superclass.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What are 5 ways to reduce reuse and recycle?

fgfgdf


What are ways to go green?

reduce, reuse, and recycle. You can reuse many school supplies and you can recycle plastics and you can reduce the waste such as garbage.


What are two ways you can reuse?

You can put things in a water bottle to save up on cups. You can also give clothes that u don't want to somebody who needs them. That's two ways to reuse


What are three ways of dealing with solid waste?

reduce, reuse, and recycle


What are some ways to reuse cheap Mardi Gras beads?

Some ways to reuse cheap Mardi Gras beads are to have kids have some fun with them like making them into necklaces and other things that kids enjoy to do.


The ways to conserve electrical energy using aircon?

RECYCLE REUSE REDUCE


What are some creative ways to reuse a butter wrapper?

Some creative ways to reuse a butter wrapper include using it to grease baking pans, wrapping leftover cheese or vegetables, or using it as a makeshift coaster for small items.


What are some creative ways to reuse a spaghetti box?

Some creative ways to reuse a spaghetti box include using it as a storage container for small items, turning it into a homemade bird feeder, or using it as a planter for small plants.


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 are the 5 ways of looking at the earth?

you mean the 5rs reduce reuse recycle rethink


What are some creative ways to reuse a cardboard bottle box?

Some creative ways to reuse a cardboard bottle box include turning it into a storage container for small items, using it as a planter for small plants, or transforming it into a DIY bird feeder.


What are the ways of disposing garbage?

The different ways of disposing garbage are- [a]we can try to make less garbage as possible. [b]We can reuse , recycle and reduce te use of plastic.