I was once asked in an interview ‘What are the 3 main concepts of OOP?’. I answered by saying that in my opinion there were 4 which are as follows:
- Inheritance
- Encapsulation
- Abstraction
- Polymorphism
Was I correct?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are 3 requirements for a language to be object-oriented:
NOTE: Abstraction is a much more general concept; encapsulation et al are kinds of abstraction, just as a subroutine is a kind of abstraction. See Abstraction