abstraction
PHP5 & Abstract Classes. Separate copy of class variables for each child class?
Let\'s see if I can describe this properly... I have an abstract class that when other classes extend from it, I\'d like for the abstract class\' data to be reset to zero.[详细]
2023-01-09 18:31 分类:问答Loose coupling of static stuff
I have a class, ClassA that uses a client I wrote to send text messages, TextClient, to send some text messages via a call to the static method[详细]
2023-01-07 11:49 分类:问答Clean Code: Should Objects have public properties?
I\'m reading the book \"Clean Code\" and am struggling with a concept.Wh开发者_运维知识库en discussing Objects and Data Structures, it states the following:[详细]
2023-01-06 12:10 分类:问答Abstracting away from data structure implementation details in Clojure
I am developing a complex data structure in Clojure with multiple sub-structures. I know that I will want to extend this structure over time, and may at times want to change the internal structure w[详细]
2023-01-04 19:44 分类:问答Protocol abstraction in C#
There are dozens of network protocols and file formats (WAV, TCP, BMP, etc. etc.) Is there a solution available to create an abstraction layer between the implementation of a protocol and the code th[详细]
2023-01-04 07:52 分类:问答synchronizing XML nodes between class and file using C#
I\'m trying to write an IXmlSerializable class that stays synced with an XML file.The XML file has the following format:[详细]
2023-01-04 04:52 分类:问答DRYing out implementation of ICloneable in several classes
I have several different classes that I want to be cloneable:GenericRow, GenericRows, ParticularRow, and ParticularRows.There is the following class hierarchy:GenericRow is the parent of ParticularRow[详细]
2023-01-01 07:37 分类:问答Dealing with multiple generics in a method call
I\'ve been dealing a lot lately with abstract classes that use generics. This is all good and fine because I get a lot of utility out of these classes but now it\'s making for some rather ugly code do[详细]
2023-01-01 02:26 分类:问答Running time assumptions in Ruby
Ruby looks a very cool language. I\'ve started learning it for the past two three days. One thing that appeals me in Ruby is its simplicity. Very clean code is possible. However, the internal implemen[详细]
2022-12-31 19:18 分类:问答Create a new instance in a static function of an abstract class
abstract class db_table { static开发者_运维百科 function get_all_rows() { ... while(...) { $rows[] = new self();[详细]
2022-12-30 19:39 分类:问答