What is object-oriented programming? What are the key principles of OOP?

  • Creator
    Discussion
  • #323

    Daniel
    Keymaster

    Object-oriented programming is a programming methodology based on the concept of ‘objects’ which contain data, in the form of fields, also called as attributes; and code, in the form of procedures, also called as methods or functions.

    Java is a class based object-oriented programming language, which means objects in Java are instances of classes. Think of a class as a blueprint, and object as an instance of this blueprint.

    Object-oriented programming is based on 4 key principles – Abstraction, Encapsulation, Inheritance and Polymorphism.

    • This discussion was modified 8 months, 4 weeks ago by  Daniel.

Log in to reply.

Original Post
0 of 0 posts June 2018
Now