This is my personal collection of interview questions. Answers are not provided for many of them but can easily be found through online research. Good luck! :)
Showing posts with label OOP. Show all posts
Showing posts with label OOP. Show all posts
Saturday, 23 June 2012
Thursday, 21 June 2012
What are four major concepts of OOP?
1) Abstraction
2) Encapsulation
3) Inheritance
4) Polymorphism
Abstraction:
- the process of separating the how from the what - how an operation is performed inside a class, as opposed to what's visible to the class user
- by abstracting class functionality we make it easier to design a program because we don't need to think about implementation details at too early stage in the design process (1)
References:
Main concepts in OOP (SO)
(1) Data Structures And Algorithms, Robert Lafore
2) Encapsulation
3) Inheritance
4) Polymorphism
Abstraction:
- the process of separating the how from the what - how an operation is performed inside a class, as opposed to what's visible to the class user
- by abstracting class functionality we make it easier to design a program because we don't need to think about implementation details at too early stage in the design process (1)
References:
Main concepts in OOP (SO)
(1) Data Structures And Algorithms, Robert Lafore
Subscribe to:
Posts (Atom)