Showing posts with label OOP. Show all posts
Showing posts with label OOP. Show all posts

Thursday, 21 June 2012

What is an instance? What are instance variables?


What is polymorphism?


What is a message in OOP? To what does message protocol refer?


What is inheritance?

What is a super-class?


What is a class?


What is an object in C++ (or in any other language that supports OOP)?


Contrast procedural and object oriented programming. What are advantages of OOP over procedural programming?


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