Skip to main content
14 events
when toggle format what by license comment
Mar 28, 2022 at 11:29 review Suggested edits
Mar 30, 2022 at 11:22
S Mar 15, 2021 at 22:49 history edited mypetlion CC BY-SA 4.0
Add C# syntax highlighting
S Mar 15, 2021 at 22:49 history suggested TomDane CC BY-SA 4.0
Add C# syntax highlighting
Mar 14, 2021 at 3:46 review Suggested edits
S Mar 15, 2021 at 22:49
Jan 25, 2018 at 23:21 comment added T.T.T. @Antony Gibbs: this is a really good example (a list of the generic types) that makes sense to me....otherwise what is the big deal of having each class have it's own wheels function without inheriting from a base class? Are there any more concepts besides list that would be good for polymorphic?
Apr 27, 2017 at 11:39 history edited Charles Roper CC BY-SA 3.0
corrected spelling
Jan 6, 2017 at 19:54 comment added Oliver Williams Also (beyond the scope of the OP) to note that we're constraining analysis to known objects; we are not passing an object (like an import file) and then determining what type it is (Excel, CSV, YAML, SQL, etc. etc.). To do this one would need some sort of factory class for Class_Excel, Class_CSV to be called, or have a Reader class called. Either way, some sort of iterative if/then/else is going to have to be stored somewhere.
Jan 6, 2017 at 19:50 comment added Oliver Williams I would say this is the clearest example, though if you are a PHP programmer this link might be easier to review FIRST, and then still look at this one after: code.tutsplus.com/tutorials/…
Jan 19, 2015 at 16:21 history edited Shimmy Weitzhandler CC BY-SA 3.0
shortening lines
Oct 30, 2014 at 2:09 comment added wired00 I think this is a very good example for showing clearly the parent interface, and that it is not until the object is instantiated that a concrete version is required, ie vehicle vs car
Apr 18, 2013 at 17:08 history edited Evan Mulawski CC BY-SA 3.0
added missing "when"
S Jun 27, 2010 at 14:19 history post merged (destination)
Jun 24, 2010 at 13:28 vote accept SMUsamaShah
S Jun 27, 2010 at 14:19
Jun 24, 2010 at 13:25 history answered Antony Gibbs CC BY-SA 2.5