# Abstract Classes and Inheritance

**URL:** <https://forums.visual-paradigm.com/t/abstract-classes-and-inheritance/7871>\
**Category:** General Questions/Discussions\
**Created:** [April 29, 2005, 12:00am UTC](https://forums.visual-paradigm.com/t/abstract-classes-and-inheritance/7871 "2005-04-29T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Burrows](https://avatars.discourse-cdn.com/v2/letter/w/f07891/32.png) [@William\_Burrows](https://forums.visual-paradigm.com/u/William_Burrows)\
**Post date:** [February 27, 2004, 12:00am UTC](https://forums.visual-paradigm.com/t/abstract-classes-and-inheritance/7871/1 "2004-02-27T00:00:00Z")

</div>

Hi,

I have an abstract superclass named SalesStaff. This class defines an abstract operation called getEarnings. I have it marked as abstract in the class diagram. There are two subclasses – Hourly and Commissioned. Both of them inherit the getEarnings method. However, in the subclasses, I do not want them to be abstract. However, when I uncheck the Abstract checkbox, this action moves up the hierarchy to the superclass and now makes the operation in the superclass not abstract.

How can I specify an operation to be abstract in the superclass but not abstract in a subclass?

Thanks … bill burrows

---

<div class="post-metadata">

**Author:** ![angus](https://avatars.discourse-cdn.com/v2/letter/a/b3f665/32.png) [@angus](https://forums.visual-paradigm.com/u/angus)\
**Post date:** [March 2, 2004, 12:00am UTC](https://forums.visual-paradigm.com/t/abstract-classes-and-inheritance/7871/2 "2004-03-02T00:00:00Z")

</div>

Dear bill,  
I will look at this problem and come back to you as soon as possible.

Best Regards,  
Angus  
Technical Support Team  
Visual Paradigm
