language · keyword ·

class

Declare reference-shaped object data

complete-programcpudatakeywordyeho

Prefer thing and ordinary functions for Kyber-ready programs. Use class and interface only while evaluating the explicit oracle route.

class

Status: generated-cpp-only

Self contained reference link

Prefer thing and ordinary functions for Kyber-ready programs. Use class and interface only while evaluating the explicit oracle route.

cpu · complete-program · type checked

external class referenceCounter
{
    int value

    referenceCounter(int value)
    {
        this.value = value
    }

    Bump() returns int
    {
        this.value = this.value + 1
        return this.value
    }
}

referenceCounter counter = referenceCounter(41)
Console.Log(Text.Format("self-contained-reference={0}", counter.Bump()))
project.mech
package = "tests.compiler.selfContainedReferenceLink"
version = "0.1.0"
selfContainedApp = true
Notes and source

Class and interface dispatch is generated-C++ only in Yeho Core 2026.1.

Generic classes and interfaces are not admitted even though the parser reserves research syntax.

yeho/docs/language/conformance-2026.1.json: class-and-interface-dispatch; parser_declarations.cpp