OOP - Coding Interviews
OOP - Coding Interviews
Basic
● What is the basic difference between functional programming and OOP? Why we
should prefer OOP
● What is class and object
● What are the four pillars of object-oriented programming?
● What is inheritance, explain with its types
Medium
Hard
● Struct is a value type and class is a reference type, what is actually means
● How to access the private member of a class outside class (friend function)
● Explain the difference between association and composition
● What is virtual function and pure virtual function
● What is interface
● Explain any practical use case of abstraction
● What is diamond problem in OOP