marqdo

对象继承ok

structure/09-继承.mq.md

文档

问候者

说明

你好

说明
谁=世界
+ 谁
`msg` = "你好,`谁`!"
`msg`

大声

说明

你好

说明
谁=世界
+ 谁
`msg` = "你好,`谁`!!!"
`msg`

main

说明
`g` = > 问候者
`m` = > `g`.你好 谁="世界"
> 打印 内容=m
`l` = > 大声
`m2` = > `l`.你好 谁="世界"
> 打印 内容=m2
Functions
Variables
  • description text
    # 子类 = > 父类;方法沿基类链查找
  • g 问候者
    _type问候者
  • l 大声
    _type大声
  • m text
    你好,世界!
  • m2 text
    你好,世界!!!
  • markup text
    occlusion
  • title text
    对象继承
可执行知识(辅助)

大声.你好 function

Target
mq://public/structure%2F09-%E7%BB%A7%E6%89%BF/function/%E5%A4%A7%E5%A3%B0/%E4%BD%A0%E5%A5%BD
Signature
(谁: any) → any
Effects
pure
Verification
parse: passed; resolve: passed; contract: unchecked; tests: unknown; evidence: unverified(尚无来源记录)
制品摘要
sha256:6e6853d896bac… (未检查锁定状态)
Depends on
none
Execution
尚无该知识的运行记录(知识预览不执行)。

问候者.你好 function

Target
mq://public/structure%2F09-%E7%BB%A7%E6%89%BF/function/%E9%97%AE%E5%80%99%E8%80%85/%E4%BD%A0%E5%A5%BD
Signature
(谁: any) → any
Effects
pure
Verification
parse: passed; resolve: passed; contract: unchecked; tests: unknown; evidence: unverified(尚无来源记录)
制品摘要
sha256:2f1344558f99f… (未检查锁定状态)
Depends on
none
Execution
尚无该知识的运行记录(知识预览不执行)。

运行与结果

你好,世界! 你好,世界!!!
完整源码
---
markup: occlusion
title: 对象继承
description: "# 子类 = > 父类;方法沿基类链查找"
---

# 问候者

## 你好
    + `谁`

**`msg` = "你好,`谁`!"**
*`msg`*

# 大声 = > 问候者

## 你好
    + `谁`

**`msg` = "你好,`谁`!!!"**
*`msg`*

# main

**`g` = > 问候者**
**`m` = > `g`.你好 谁="世界"**
> 打印 内容=`m`
**`l` = > 大声**
**`m2` = > `l`.你好 谁="世界"**
> 打印 内容=`m2`

Variable