subclass
Possible to eliminate this base-class constructor?
Is there any way to eliminate the explicit constructor 开发者_运维知识库call in Foo and somehow have Bar::len assigned to the size of any of Bar\'s sub-classes?[详细]
2023-04-13 01:26 分类:问答custom combobox win32
I am trying to implement an auto-suggest feature in an win32 combobox (C++). I want to achieve a behaviour that is similar to the google auto suggest function. When the user types something into the e[详细]
2023-04-12 19:13 分类:问答What does new Object { } do?
I开发者_高级运维t was difficult to search for information on this because I don\'t know what it\'s called, so that\'s my first question I guess.[详细]
2023-04-12 04:40 分类:问答Creating python subclass issue
I\'m having some trouble with class inheritance in Python 3.1x that I am hoping to get some help with. I have aclass called ClassA and I am trying to create another class called ClassB that inherits f[详细]
2023-04-10 07:52 分类:问答template specialization for all subclasses
I would like to define a C++ template specialization that applies to all subclasses of a given base class. Is this possible?[详细]
2023-04-10 03:56 分类:问答C++ WM_NCCALCSIZE not being sent
I\'m trying to center the text in a edit control vertically, after some research I found I have to process the WM_NCCALCSIZE message.[详细]
2023-04-08 16:38 分类:问答Java - Generically handling the creation of subclasses
I have three classes that are quite similar, excepting a single method. Therefore, I chose to put the rest of their functionality into an abstract superclass. When it comes to creating instances of th[详细]
2023-04-07 23:45 分类:问答Call subclass's method from its superclass
I have two classes, named Parent and Child, as below. Parent is the superclass of ChildI can call a method of the superclass from its subclass by using the keyword super. Is it possible to call a meth[详细]
2023-04-06 13:00 分类:问答Access IB Object from Custom Class
This is a silly beginner question but... If I have a custom subclass of NSTextView \"SSTe开发者_如何转开发xtView\" that spawns from Interface Builder, how do I access the instance of my custom class t[详细]
2023-04-06 09:02 分类:问答A Collection of an Abstract Class (or something like that...)
The Scenario I\'m making a program in Java that involves cars. NOTE: I\'ve simplified this scenario (to the best of my ability) to make it both more general and easier to understand.I\'m not actuall[详细]
2023-04-06 02:11 分类:问答