# Creating layer-specific classes that inherit from Pega OTB Classes \[LSA Data Excellence\]

**URL:** <https://forums.pega.com/t/creating-layer-specific-classes-that-inherit-from-pega-otb-classes-lsa-data-excellence/769>\
**Category:** General\
**Tags:** 8-4-1, data-integration, senior-system-architect, lead-system-architect, case-management\
**Created:** [October 29, 2020, 4:06am UTC](https://forums.pega.com/t/creating-layer-specific-classes-that-inherit-from-pega-otb-classes-lsa-data-excellence/769 "2020-10-29T04:06:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BraamSmithCLSA](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/braamsmithclsa/32/24183_2.png) [@BraamSmithCLSA](https://forums.pega.com/u/BraamSmithCLSA)\
**Post date:** [October 29, 2020, 4:06am UTC](https://forums.pega.com/t/creating-layer-specific-classes-that-inherit-from-pega-otb-classes-lsa-data-excellence/769/1 "2020-10-29T04:06:37Z")

</div>

An example is discussed in [Implementing specializations of Pega OTB Classes](https://collaborate.pega.com/discussion/implementing-specializations-pega-otb-classes-lsa-data-excellence).

The primary benefit for layer-specific subclasses is the flexibility it provides in allowing the overriding of capability from / adding new capability to Pega-provided classes whilst allowing your client’s applications to continue to use the Pega class as intended when appropriate.

In the example referenced above:

- Ruleset-specialization of PegaData-Address.PostalCode into a client layer forever masks the Pega-provided capability of that rule for any application where that Ruleset is on the Ruleset stack.
- The same specialization of PostalCode - implemented as a Class-specialization to MyOrg-Data-Address - still allows client applications to opt to use the Pega-provided capability by referencing PegaData-Address in their data model.

_Discussion on this topic was sought from the_ **_LSA Data Excellence (Pega 8.4) webinar_** _conducted in July 2020. The webinar and its full set of discussions that arose from it are available at_ [_LSA Data Excellence: Webinar, Questions & Answers_](https://collaborate.pega.com/discussion/lsa-data-excellence-webinar-questions-answers)_._
