derived-class
Pointers to functions and derived classes
I\'m having a problem with g++ and how templates interact with pointers to functions. Consider the following declaration of a template.[详细]
2023-04-13 07:13 分类:问答Can't see parent's methods in derived class
I\'m trying to extend a class, then use a method from base class, but i can\'t see it. 开发者_运维知识库My Code:[详细]
2023-04-12 10:21 分类:问答Derived class in C++
I have a homework problem that asks: Desgin a derived class GraduateStudent from base class Student.It adds a data member named Advisor to store the name of student’s thesis advisor.Provide construc[详细]
2023-04-12 01:40 分类:问答How to pass List<DerivedClass> when param type is List<BaseClass>?
How can i pass a list which is a list of DerivedObjects where the Method is expecting a list of BaseObjects. I am converting the list .ToList<BaseClass>() and am wondering if there is a better w[详细]
2023-04-11 01:45 分类:问答How to make derived class function be executed?
We have a base class: Filter.DistrFilter and ReportFilter inherit from Filter. In another class, FilterService.cs, we have two functions that accept these three class types. FilterService operates on[详细]
2023-04-10 12:00 分类:问答Why Protected Members are only accessible by methods of Derived Class [duplicate]
This question already has answers here: Why can't I access protected variable in subclass? (2 answers)[详细]
2023-04-10 05:07 分类:问答Checking if caller and parameter are the same
For example I 开发者_运维百科have four classes like: class A; class B{ protected: void check(const A &a);[详细]
2023-03-31 13:18 分类:问答Derived Class not Calling Entire Base Constructor
I\'m sure this is just some stupid syntax error I\'m making, but when my class 开发者_JS百科CNeck derived from CLimb calls its default constructor, CNeck() everything works as expected. When it calls[详细]
2023-03-28 17:45 分类:问答Serialization of derived objects without the xsi:type
I\'m having a problem when serializing a Dictionary containing a list of derived objects. The serialized output contains[详细]
2023-03-25 18:53 分类:问答When should a virtual method be pure?
I have found some code that I am working on, and wa开发者_Python百科s wondering what the best design implementation is.[详细]
2023-03-23 11:15 分类:问答