英文: c++ inheritance: can a pointer to a base class access members of the derived class? 问题 给定一个基类 Sh...
在销毁派生对象时,调用子类和父类析构函数会出现问题吗?
英文: Are there any issues from both the child and parent destructors being called when a derived obje...
unique_ptr在使用基类时的析构函数序列
英文: sequence of destructors when using unique_ptr to base class 问题 我正在尝试使用std::unique_ptr和类继承(即多态性)。...
构造函数在对象创建时打印文本。
英文: Constructor prints text when object is created 问题 我在一个C#控制台应用程序中工作,正在学习面向对象编程。首先,我有一个Person类, cl...
多态性是指在Ruby中,当我的类具有固定的父类时。
英文: Polymorphism when my class has a fixed parent class in Ruby 问题 我有一个设计问题,无法想出一个优雅的解决方案。我正在编写一个后台作...
Ruby on Rails ActiveRecord单表继承具有一个到超类的关联。
英文: Ruby on Rails ActiveRecord Single Table Inheritance has_one to superclass 问题 I have a Base class...
继承的方法是否使用超类或子类的可见性、方法和属性?
英文: Do inherited methods use the visibility, methods and attributes of the superclass or subclass? 问...
如何在动态创建对象时使Delphi调用正确的构造函数?
英文: How to make Delphi call correct constructor during dynamic creating? 问题 我有问题,似乎在动态创建时调用了不正确的构造函数...
inheritance and polymorphism together in golang, are possible?
英文: inheritance and polymorphism together in golang, are possible? 问题 这个问题来自我需要将一个工作中的C++程序逻辑移植到gola...
Is there an interface that can be used as a parameter in a method for T[] (an array of type T) and for List<T>
英文: Is there an interface that can be used as a parameter in a method for T[] (an array of type T) a...
9