Basic OOPs Interview Question
Why use OOP ?
1. allows clarity in programming thereby allowing simplicity in solving complex problems 2. Code can be reused through inheritance thereby reducing redundancy.
What are the main features of OOPs ?
Inheritance Encapsulation Polymorphism Data Abstraction
What is the difference between OOP and SOP ?
Object Oriented Programming(OOP) is a type of programming which is based on objects rather than just functions and procedures. Provides data hiding Can solve problems of any complexity Structural Programming(SOP) provides logical structure to a program where programs are divided functions. Does not provides data hiding Can solve moderate problems
What is OOPs ?
is a type of programming which is based on object rather than just functions and procedures. Individual objects are grouped into classes.