Files
marqdo/public/structure/09-inherit.mq.md
T
cflmyandCursor 6db3da1cc0 fix(public): quote italic call-arg string literals for pages CI
Bare identifiers inside *…* are variables; quote text args (and var="x")
so marqdo run on public/*.mq.md succeeds. Narrow pages.yml exclude to
utils.mq.md and 工具.mq.md instead of overly broad ??.mq.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 11:59:10 +08:00

30 lines
388 B
Markdown

---
title: Object inheritance
description: "# Child = > Parent; methods walk the base chain"
---
# Greeter
## hello
+ `who`
*`msg` = "Hello, `who`!"*
**`msg`**
# Loud = > Greeter
## hello
+ `who`
*`msg` = "HELLO, `who`!"*
**`msg`**
# main
*`g` = > Greeter*
*`m` = > `g`.hello who="world"*
> print text=`m`
*`l` = > Loud*
*`m2` = > `l`.hello who="world"*
> print text=`m2`