Domanda di colloquio di World Wide Technology

Can you explain the 5 basic principals for object oriented programming?

Risposte di colloquio

Anonimo

15 set 2016

They are summarized by the acronymn SOLID Separation of Concerns Open/Closed Principal Liskov Substitution Principal Interface Segregation Principal Dependency Inversion Principal

1

Anonimo

21 mar 2018

Though not incorrect, SOLID is a more recent interpretation. The traditional answer is typically Encapsulation, Abstraction, Inheritance, and Polymorphism.

Anonimo

28 lug 2018

But encapsulation, abstraction, inheritance and polymorphism are only 4 principles. Since the question asked for 5 I think solid is the right answer