From 2248402d021dec1a5c30f4c79aac5f5c67976fb8 Mon Sep 17 00:00:00 2001 From: "taohebin@dcloud.io" Date: Thu, 16 May 2024 11:04:47 +0800 Subject: [PATCH] Update class.md --- docs/uts/class.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/uts/class.md b/docs/uts/class.md index 9b5f2725..27095484 100644 --- a/docs/uts/class.md +++ b/docs/uts/class.md @@ -492,3 +492,13 @@ class Test { 更多介绍参考 [文档](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/) +#### kotlin 平台匿名内部类写法 + +``` + const runnable = new (class implements Runnable { + override run() { + + } + }) +``` + -- GitLab