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>
30 lines
388 B
Markdown
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`
|