You might have noticed, many of our lowest fares are often found on OTA (Online Travel Agent) aggregators such as Momondo. If you've previously booked all of your travel directly through the airline, you might be wondering if it's safe to book your flight
Luzius MeisserHe is right regarding inheritance and polymorphism. Usually, composition and interfaces work better. However, he is wrong on encapsulation. First, encapsulationSee more can help structuring a program very nicely. Second, the main weakness of encapsulation and object-oriented programming in general is one he does not mention at all: namely that its philosophy goes directly against that of table-based databases and many other forms of persistence. The basic idea of object-oriented programming is that data and functions that operate on that data belong together. Relational databases are built on the opposite idea, namely that data should be separated completely from the functions that operate on that data. So whenever you want to connect objects to a database, there are lots of frictions.