Question: In class we looked at an inheritance example with Character, Letter, and Digit classes. If there was another class I wanted to write that had
In class we looked at an inheritance example with Character, Letter, and Digit classes.
If there was another class I wanted to write that had fewer features than Character,
for instance a class named Symbol that did not need or use font. Does it make more
sense for Symbol to extend Character, or the other way around?
Symbol should extend Character
Character should extend Symbol
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
