Oops Concepts?

Oops

Oops, stand for Object-Oriented Programming Language that follows the bottom-up approach.
  • The program is divided into objects.
  • It uses an access specifier.
  • Encapsulation is used to hide the data.
  • Inheritance is allowed, etc...

Oops Concepts

  • Class 
  • Object
  • Data Abstraction
  • Encapsulation
  • Polymorphism
  • Inheritance, etc...

  • Class -:  Class is a blueprint for creating objects, providing initial values for state (member variables or attributes), and implementations of behavior (member functions or methods). Class is like a template of an object.
  • Object -: Object is a variable of a class. When Object is created then class takes memory. An object is an instance of a class.
  • Data Abstraction -: Data abstraction is used to hide the working style of an object, and to show information of an object in something understandable form.
  • Encapsulation -: The wrapping up of data and methods into a single unit (called class) is known as encapsulation.
  • Polymorphism -: Where one name can have many forms.
    • Types
      1. Compile-time polymorphism -: Method overriding
      2. Run time polymorphism -: Method Overloading
  • Inheritance -: Inheritance is the reusability of code. In other words, The properties or features of the object of that class is acquire to another object of another class is known as inheritance.

No comments