Timeline for Programming language for teenagers
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 26, 2018 at 20:37 | comment | added | Buffy | Unfortunately this view of OO needs work. If Animal is abstract or an interface then ok. But the sound an animal makes is not a good use of polymorphism (by inheritance anyway). Better it is a good use of programming by composition, which OO also supports in fantastic ways. An animal has a sound which is another object type. You can find better descriptions of OO and polymorphism given in many answers on this site. Have a look around. (Note that I've taught OO since about 1985) | |
Jan 26, 2018 at 20:31 | review | First posts | |||
Jan 27, 2018 at 2:53 | |||||
Jan 26, 2018 at 20:26 | history | answered | Singleton | CC BY-SA 3.0 |