New answers tagged

-1

How about a boring*, but realistic, commercial example? When the students leave the "hallowed halls" and become entrepreneurs in start-ups, they will be faced with the relationships between Customer, Product, and Sale (Transaction). By keeping all of the Product data (for example) 'together', we introduce the advantage of encapsulation over a basic ...


3

I expect to update this a few times and hope to eventually have a long answer. But let me start by explaining some things that you may already be aware of, but other readers may not. First, OO programming is not, fundamentally, about inheritance and too many books and authors fail to understand that. Moreover, they use inheritance in a dreadful way that ...


Top 50 recent answers are included