Welcome Guest, Not a member yet? Register   Sign In
Best way to have multiple parent controllers
#9

[eluser]Yorick Peterse[/eluser]
[quote author="Dam1an" date="1241355137"][quote author="Yorick Peterse" date="1241323980"]You could make 3 controllers, controller 1, controller 2 and controller 3. Next thing you need to do is to make controller 3 extend controller 2 and controller 2 should be extending controller 1. However, doesn't this kill the general idea behind Object Oriented programming ?[/quote]

How would that kill OOP? One of the big things with OOP is inheritence, so having 10+ levels of inheritence is fine, as long as it makes sense to do so[/quote]

Wasn't OOP ment to be an idea of smaller applications (in this case classes) that would together make up one big app ? Making each controller extending the other would make you end up with one big "file" instead of multiple smaller ones.


Messages In This Thread
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 05:10 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 05:13 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 05:16 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 06:51 PM
Best way to have multiple parent controllers - by El Forum - 05-02-2009, 09:57 PM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 01:52 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 03:26 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 03:39 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 03:49 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 04:37 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 05:24 AM
Best way to have multiple parent controllers - by El Forum - 05-03-2009, 09:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB