Introduction (OOP)


What is OOP(Object Oriented Programming)  ?

                 Procedural programming is about writing procedures or functions that perform operations on the data, while object-oriented programming is about creating objects that contain both data and functions. OOP provides a clear structure for the programs.
Four basic principal of OOP : 
          The four principles of object-oriented programming are encapsulation, abstraction, inheritance, and polymorphism. 

Why we use OOP ?
Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism etc in programming. The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function.

Benifit of OOP  : 
  •     Because of characteristics of oop, we can avoid writing the codes multiple times and can reuse the code. Besides, we can manage abstraction of data and functions by using access specifier, that is, we can decide which data members and member functions are available outside the class. Also the characteristics like class, objects, polymorphism, encapsulation, abstraction and inheritance(inheritance and abstraction mentioned above) can qualify into advantages of using OOP.

  • Extensibility: through inheritance, we can build extended code means we can develop the existing.
  • Reusability: through inheritance,we can reuse the existing code instead of writing new one.
  • Saves time: using existing code saves us lot of time.
  • Security: Helps in writing secured code.
  • Communication: through message passing, objects can communicate with each other.
List of OOP languages :
  1. Java (Java is pure OOP language)
  2. JavaScript
  3. C#
  4.  Scala
  5.  MATLAB
  6.  PHP
  7. Visual Basic.NET
  8. C
  9. Ruby
  10. Smalltalk
  11.  Dert
  12. Objective-C 
  13. Object Pascal
  14. Swift 
  15. Python
  16. Kotlin 
  17. Common Lisp
  18. Perl



No comments:

Post a Comment