language · keyword ·
inherits
Alternative base-class connector
Prefer thing and ordinary functions for Kyber-ready programs. Use class and interface only while evaluating the explicit oracle route.
inheritsStatus: generated-cpp-only
Complete program
A complete example you can paste into start.yh.
cpu · language · type checked
class Pilot
{
Name() -> text { return "Pilot" }
}
class Scout inherits Pilot
{
override Name() -> text { return "Scout" }
}
Scout pilot = Scout()
Console.Log(pilot.Name())
project.mech
manifestVersion = "2"
package = "api.example.word__inherits"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
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