Class Definition Syntax and Keyword Reference

Reference ObjectScript class definition syntax and keywords for InterSystems IRIS.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/sorodriguezz/skills-objectscript --skill class-definition-syntax-and-keyword-reference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Class Definition Syntax and Keyword Reference
Source: https://github.com/sorodriguezz/skills-objectscript/tree/main/skills/class-definition-syntax-and-keyword-reference
Command: npx skills add https://github.com/sorodriguezz/skills-objectscript --skill class-definition-syntax-and-keyword-reference

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for the syntax and keywords used in ObjectScript class definitions, helping developers understand and correctly implement class structures.

Core Features & Use Cases

  • Syntax Reference: Details the structure of class definitions, including imports, includes, class names, inheritance, and keywords.
  • Keyword Explanations: Provides in-depth explanations for various class keywords like Abstract, ClassType, Final, Hidden, Language, NoExtent, Owner, ProcedureBlock, and more.
  • Use Case: A developer needs to define a new persistent class and is unsure about the correct syntax for specifying its storage mechanism and ensuring it can be modified via DDL. This Skill provides the exact keywords and examples needed.

Quick Start

Explain the syntax for defining a persistent class in ObjectScript that can be modified via DDL.

Frequently Asked Questions about Class Definition Syntax and Keyword Reference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define a persistent class in ObjectScript that can be modified via DDL?

To define a persistent class in ObjectScript modifiable via DDL, you use specific class-level keywords to specify the storage mechanism and enable DDL modifications, ensuring correct compilation behavior. This Skill provides the exact syntax and keyword examples needed.

What do ObjectScript class definition keywords like Abstract, Final, and Hidden actually do?

ObjectScript class definition keywords like Abstract, Final, and Hidden control inheritance, instantiation, and member visibility during compilation. This reference explains how these and other keywords affect class structure and behavior in InterSystems IRIS.

What is the correct syntax structure for an InterSystems IRIS class definition?

An InterSystems IRIS class definition syntax structure includes imports, includes, class names, inheritance, and various member definitions. This Skill details the exact structural format required for proper compilation and implementation.

When should I use the NoExtent or ProcedureBlock keywords in an ObjectScript class?

You use the NoExtent keyword to prevent instances from being stored, and ProcedureBlock to control variable scoping within methods. This reference explains when to apply these ObjectScript keywords to achieve specific runtime behaviors.

Can I specify the programming language used inside an ObjectScript class definition?

Yes, you can specify the programming language used inside an ObjectScript class definition by applying the Language keyword. This Skill explains how to configure class-level keywords to define the underlying implementation language for members.