Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

Objects

Guides

  • Objects

Symbols

  • CreateType
  • Object
  • ObjectQ
  • TypeQ
KirillBelov`Objects`
CreateType
​
CreateType
[type]
create a
type
inhered from the
Object
without custom fields
​
​
CreateType
[type,parent]
create a
type
inhered from the parant without custom fields
​
​
CreateType
[type,…,{fields}]
create a
type
with custom fields that have default Authomatic values
​
​
CreateType
[type,…,{
field
1

value
1
,..}]
create a
type
with custom fields that have default specific values
​
Examples  
(2)
Basic Examples  
(1)
Let's create some type:
In[1]:=
CreateType
[Cat,"Icon"Style["😺",28],"Name"]
Out[1]=
Cat
Create an instanse of the type:
In[2]:=
Barsik=Cat[Name"Barsik"]
Out[2]=
Cat
😺
Symbol: Cat`$17
Name: Barsik

Define a method:
In[3]:=
sayMeow[cat_Cat]^:=Print["Meow"]
Call the method:
In[4]:=
sayMeow[Barsik]
Meow
Scope  
(1)

SeeAlso
TypeQ
Object
ObjectQ
RelatedGuides
▪
Objects
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com