|
|
|
|
|
by majjgepolja
1837 days ago
|
|
> What is definitional? Inheritance, encapsulation, methods. I am probably missing something, but how is inheritance essential for OOP? In my understanding, inheritance is not necessary. The point of OOP was probably encapsulation. At some time inheritance became popular for "code reuse", until a preference for composition over inheritance developed. Emphasis on inheritance is what infuriates me about many traditional sources about Java programming etc.. My java textbook says "object model" is major detail and "typing" is a minor detail. I am like, WTF, you cannot understand java object model until you understand type system. |
|