·
If
class B is inherited from class A, class B can use the components of class A
·
Here
Class B is said to be child class and class A is said to be parent class
·
In
Pega we can achieve the reusability by means of inheritance
·
There
are 2 types of Inheritance available in Pega
1. Direct Inheritance
2. Pattern Inheritance
·
Direct Inheritance:
o
In
direct inheritance a class can only one direct parent
o
Direct
parent of class can be selected under the dropdown “Parent Class Directed” in
the class rule form
o
Direct
inheritance is mandatory
·
Pattern Inheritance:
o
Pattern
inheritance on a class can be applied by selecting the option “Find by name
first pattern” in the class rule form.
o
It
is optional
o
If
the class A-B-C is applied with pattern inheritance, B is pattern parent of
class C.
No comments:
Post a Comment