Analyst Integration Question:
Download Job Interview Questions and Answers PDF
What is the Liskov substitution principle?
Answer:
Liskov substitution principle is one of the five principle introduced by Uncle Bob as SOLID design principles. It's the 'L' in SOLID. Liskov substitution principle asserts that every sub type should be able to work as proxy for parent type. For example, if a method except object of Parent class then it should work as expected if you pass an object of Child class. Any class which cannot stand in place of its parent violate LSP or Liskov substitution principle. This is actually a tough question to answer and if you does that you end up with creating a good impression on interviewers mind.
Download Integration Programmer Interview Questions And Answers
PDF
Previous Question | Next Question |
Can you describe the difference between valid and well-formed XML? | What is the relationship between threads and processes? |