3 ms·
OOP can be used without inheritance, using composition. Actually all four ways are possible: with either, neither, or both. The GoF book says to prefer compo
by fuzztester 3y ago
OOP can be used without inheritance, using composition.
Actually all four ways are possible: with either, neither, or both.
The GoF book says to prefer composition over inheritance much of the time, in an early page of the book.