Skip to main content

Timeline for Declaration Types in OOP

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Apr 19, 2018 at 0:20 comment added Frank Hileman @KilianFoth Also it ensures that the variables can be used with the maximum number of types, given that the base type(s) of type A can have larger number of derived types than the derived types of type A.
Apr 19, 2018 at 0:03 comment added Frank Hileman @KilianFoth I believe the statement is about variables because it is all about maximizing the generality of the caller algorithm, where the caller is using variables whose instance representations can be one of many derived types. Following this advice minimizes the changes required when derived classes change.
Apr 18, 2018 at 5:20 vote accept JoseLuis
Apr 18, 2018 at 5:20
Apr 18, 2018 at 0:12 answer added Frank Hileman timeline score: -1
Apr 16, 2018 at 14:01 review Close votes
Apr 22, 2018 at 3:03
Apr 16, 2018 at 13:58 comment added Kilian Foth There is no point applying the liberal/conservative maxim to variables. Variables should have such short lives and such low visibility that changing their concrete type isn't a problem. It's really only about parameters and return types, because those have potentially infinite scope and lifetime.
Apr 16, 2018 at 13:54 answer added David Arno timeline score: 4
Apr 16, 2018 at 13:53 comment added JoseLuis you have reason the question is too vague. It is made so deliberately. I would like to know what is the limit of Program to interfaces, and should we return the most especific type?
Apr 16, 2018 at 13:50 history edited JoseLuis CC BY-SA 3.0
added 6 characters in body
Apr 16, 2018 at 13:45 comment added Vincent Savard The question could be refined a bit, but it's an interesting one. There's one half of the answer here: softwareengineering.stackexchange.com/questions/232359/…
Apr 16, 2018 at 13:43 history edited JoseLuis CC BY-SA 3.0
deleted 9 characters in body
Apr 16, 2018 at 13:41 review First posts
Apr 17, 2018 at 13:17
Apr 16, 2018 at 13:38 history asked JoseLuis CC BY-SA 3.0