answersLogoWhite

0

By using Inheritance

If i want to derive the features of Class A into B

then i will do

Class a extends B

{}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is a unit inheritance?

Unit Inheritance or Single Inheritance refers to the situation where one class inherits/extends the features of another class ex: public class A extends B { ..... } The above is an example of unit inheritance.


Can you inheriet constructor from one class to other class in java?

No. Consturtors are not inherited from one class to another


How do you implement inheritance in java?

Inheritance can be implemented in Java using the two keywords "extends" and "implements" Extends keyword is used when one class is expected to inherit the full functional behavior of another class. Implements keyword is used when one class is expected to take the skeleton features of an Interface and implement the functionality in the current class.


What is the differene between caste system and class system?

In a class, you can depending how well you do, improve from one class to another class. In the caste system, one is born in a caste, and cannot move to another caste, except by reincarnation


What are 4 physical features of lions?

One of the lions physical features are it's manes another is its teeth another is their ears and eyes


Simple example What is class inheritance?

A Scenario where one class is inheriting/extending the behavior of just one super class. Ex: public class Ferrari extends Car {…} Here the Ferrari class is using features/logic from the Car class


What unique identifying features do humans have that make one identifiable as distinct from another?

There are several unique identifying features that humans have that distinguish one from another. These features are also know as genetic variation. Finger, arm and hand print identification marks one individual different from another. DNA sequencing and iris identification can further distinguish one person from another.


How do you change your class in AQworlds?

Get another one and equip it


Write down the various features of Nested class?

A nested class is a class defined within another class, and it can be categorized into static and non-static (inner) nested classes. Features of nested classes include encapsulation, as they can access the enclosing class's members, including private ones. They also help in logically grouping classes that are only used in one place, enhancing code readability and maintainability. Additionally, static nested classes do not require an instance of the enclosing class, while inner classes do.


What is features of grooming?

All the features of your person that another person could observe through one of their senses.


What is Inheritance in Java language?

A Scenario where one class is inheriting/extending the behavior of another class


What are the linguistic features that distinguish one language from another?

The linguistic features that distinguish one language from another include vocabulary, grammar, syntax, phonetics, and writing systems. These features vary across languages and help differentiate them from each other.