Stuff they dont teach you here, at least they never did in my - TopicsExpress



          

Stuff they dont teach you here, at least they never did in my classes! Class A = super class Class B = subclass of A Class C = subclass of A Class D = subclass of B & C Deadly diamond - you have two instances of Class A in memory with Class D. So not only do you have a much larger memory footprint slowing you down no doubt, but you have tons of issues with static members or default methods and virtual ones. I never ever knew this! Its a fairly bad OOO design issue/drawback thanks to multi-inheritence. And apparently, this was a non issue for few languages like Java .... until Java 8, which brought in default & static methods which makes this a serious issue.
Posted on: Tue, 30 Sep 2014 21:57:33 +0000

Trending Topics



Recently Viewed Topics




© 2015