answersLogoWhite

0


Best Answer

If you do that, many definitions and later changes have to be done but in a single place, where they will affect the two (or more) subclasses.

User Avatar

Wiki User

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

Wiki User

11y ago

Most of the attributes and methods of the super class can be inherited can be inherited in the subclass.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the potential advantages of treating two related classes as sub classes of some super class?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the potential advantages of treating two related classes as subclasses of some superclasses?

If you do that, many definitions and later changes have to be done but in a single place, where they will affect the two (or more) subclasses.


What are the potential of treating two related classes as subclasses of some superclasses?

If you do that, many definitions and later changes have to be done but in a single place, where they will affect the two (or more) subclasses.


Energy at a height is called what?

Energy related to the height of an object is gravitational potential energy.Energy related to the height of an object is gravitational potential energy.Energy related to the height of an object is gravitational potential energy.Energy related to the height of an object is gravitational potential energy.


What are the advantages and disadvantages of an immunologist?

Advantages of being an immunologist include the opportunity to contribute to medical research, work in various healthcare settings, and make a difference in patients' lives through diagnosing and treating immune-related disorders. Disadvantages may include long hours, high stress levels, and the extensive education and training required to become a qualified immunologist.


What animal classes are closely related to any of the fish classes?

swimming


What are some classes that are related to Botany?

Science, Chemistry, and Agriculture classes relate to the subject of Botany.


Which usually has within it a number of related classes?

Order


What is the group of related classes?

its phylum! (probably)


What is the advantages of center of mass?

The center of mass provides a convenient reference point for analyzing the motion of an object. It simplifies calculations related to the motion, stability, and collisions of an object by treating it as a point mass placed at the center of mass. Additionally, finding the center of mass allows for a better understanding of how forces interact with the object as a whole.


What is a group of closely related classes in a kingdom called?

A group of closely related classes in a kingdom is called a phylum. It is a taxonomic rank below kingdom and above class.


What are disadvantage and advantages of surrogacy?

Disadvantages of surrogacy include the potential for emotional and legal complexities, as well as the high cost involved. However, advantages can include the ability for individuals or couples to have a biologically related child when they are unable to conceive on their own, and the opportunity for individuals to help others in a meaningful way by being a surrogate.


What is package and how is different from packaging?

A Package refers to the grouping of related Classes together. If you create a group of classes related to soccer, then all classes can be stored in the soccer package.Accessing a particular class then would be like asking the program to go to the soccer package and find the class related to offside.// Example codeimport soccer.offside;// To import all classes of a package use an asterisk *import soccer.*;