• What is object oriented programming

    class abc{
    int a;
    int b;
    
    sum()
    }
    
    /*In objected oriented programming : we use the same class multiple times
      with the use of objects*/
    
  • Difference between procedural and OOPs?

    // Procedural : c and pascal
    // OOPs languages: c++ , Java , python
    
    
    Procedural Object oriented language
    Methods, sequence of action Object and interaction
    Data is exposed Data is not exposed
    Code can’t be reused much much more reuse
  • Why use OOPs?

    1. For making the code modular
      1. The buisness logic might be huge. We can’t write everything in a function. It is difficult to read them. We try to segregate into smaller readable chunks. OOPs helps you do that.
    2. Reusability.
      1. Write code once and use multiple times.
    3. Scalable
    4. Security
      1. Can hide sensitive buisness logic, and customer data.
  • Real life analogy of OOPs? 1.

    Balance = 100
    
    withdraw balance(){
    ...
    }
    
    addMoney(){
    ...
    }
    
    // with the helps of oops : We can have the same code for different objects. 
    
    
  • Why is OOPs languages better for large projects?

    • Becuase they are scalable
    • also security matters over there…