abstract
Proper use of an abstract class
I am using .Net and have a simple master- and sub-class design. My master class contains nearly all the functionality and the sub-class only needs to set a value from the master.I was considering maki[详细]
2023-02-16 13:58 分类:问答Can you access the concrete class from the abstract class?
I have a abstract class which represents an immutable value.Like strings, the immutable class has methods which appear to change the inst开发者_StackOverflow社区ance, but really just return a new inst[详细]
2023-02-15 17:22 分类:问答abstract classes and validation methods
Introductory OOP question for you: Situation: I want an abstract class with a public setter and abstract validator, since each child will validate that property in a unique way.[详细]
2023-02-12 14:31 分类:问答NHibernate SchemaExport With Abstract Class Lists Not Being Created
I am currently trying to create a base class for my domain objects that contains a list because we have to model an excel spreadsheet with very particular requirements.[详细]
2023-02-12 06:12 分类:问答reference to abstract class
What does it mean when there is a reference to an abstract class? I found it in code and 开发者_运维技巧I can\'t understand it.[详细]
2023-02-11 01:59 分类:问答Best practices to test protected methods with PHPUnit (on abstract classes)
With PHPUnit and PHP >= 5.3 it is possible to test protected methods. The following page at stackoverflow outlined the best practice on it:[详细]
2023-02-10 12:52 分类:问答Delphi abstract function calls with different name than base class
Say I\'ve got a function function GetFieldName(FieldIndex: Integer; FieldName: PChar; Len: Integer): Integer; virtual; abstract;[详细]
2023-02-08 19:44 分类:问答Defining an abstract class without any abstract methods
Can I define开发者_JS百科 an abstract class without adding an abstract method?Of course. Declaring a class abstract only means that you don\'t allow it to be instantiated on its own.[详细]
2023-02-06 18:55 分类:问答Comparison : interface methods vs virtual methods vs abstract methods
What a开发者_高级运维re the advantages and disadvantages of each of these? interface methods virtual methods[详细]
2023-02-05 20:11 分类:问答Xna and System namespace conflict
i\'m trying to declarate new abstract class using System; using System.Drawing; using System.Windows.Forms;[详细]
2023-02-05 04:29 分类:问答