gpt4 book ai didi

c# - Java、C# 和 Prolog 反射机制

转载 作者:行者123 更新时间:2023-11-30 08:27:48 25 4
gpt4 key购买 nike

<分区>

我正在准备期末考试,遇到了这个问题:

Learn about the reflection mechanisms of Java, C# and Prolog, all of which allow a program to inspect and reason about its own symbol table at run time. How complete are these mechanisms? (For example, can a program inspect symbols that aren’t currently in scope?) What is reflection good for? What uses should be considered good or bad programming practice?

为什么用符号表来问这个问题?我可以编写与我在这个 SO 问题中提到的类和对象方面编写的相同解决方案吗:

What is reflection and why is it useful?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com