4 ms·
C# is a clearly object oriented language, and you can decide what is on the stack and on the heap. And while inheritance is a very prominent feature of object
by fabian2k 4y ago
C# is a clearly object oriented language, and you can decide what is on the stack and on the heap.
And while inheritance is a very prominent feature of object oriented languages, it is not the only option there. I think the way those languages are taught over-emphasizes inheritance, but there are plenty of arguments today around preferring composition. So I don't think this is an inherent property of the languages, they allow you to use inheritance but you're not forced to used it everywhere.