Hey Ksh*tij,
default Class Pattern is just one of at least 5 possible interface design patterns that we can use when writing our Script Includes. Let's take a quick look at these design patterns:
1. Class Pattern
2. Function Pattern
3. Namespace Pattern
4. Global Include Pattern
5. Module Pattern (Revealing Module Pattern)
Please Refer below Link for more details:
Interface Design Patterns for Script Includes
You can also refer docs & community Threads:
how to write the Script include in service now
TechNow Episode 6 | Script Includes
i hope this will be helpful to you, Let me know if you need more help.
Thanks,
Rajashekhar Mushke
Community Leader-18
Thanks,
Rajashekhar Mushke
Rising star -2023 & 2022
Community Leader -2018