What is the need of classes for OOPS programming language?

0 45 Views | Posted 6 years ago

  • 2 Answers

  • S

    Answered by

    Showmik Dutta | Contributor-Level 6

    6 years ago
    Object-Oriented Programming has the following reasons to be used:
    1) OOP provides a clear modular structure for programs.
    2) OOP makes it easy to maintain and modify existing code.
    3) OOP provides a good framework for code libraries where supplied software components can be easily adapted and modified by the programmer.
    4) Code reusability.
    5) It is suitable for real word problems and real world works.
    Few more points for better understanding are:
    Why? Because if you stick to the rules, it makes complex code easier to develop, reliable, maintainable, and generally better.
    OOP insists that you think about what you expose to the outside wor
    ...more
  • P

    Answered by

    Preeti Bhatt | Contributor-Level 10

    6 years ago
    Following two concepts explain everything about the use of OOPs.
    1. Duplicate code is bad.
    2. Code will always be changed.
    So, above statement proves, OOPs is provides code reusability which reduces the duplication of code because once you have duplicate code, you have made changes everywhere which leads to performance. The code can be changed anytime or requirement of application changed anytime so when you want to make changes in your application, OOPs makes it easier.
    Features of OOPs.
    There are three main features of OOPS.
    1. Abstraction: Learn abstraction here (PHP 5 Abstract classes and Methods)
    2. Polymorphism: It is a feature that all
    ...more

Get authentic answers from experts, students and alumni that you won't find anywhere else

Sign Up on Shiksha

On Shiksha, get access to

  • 64k Colleges
  • 966 Exams
  • 618k Reviews
  • 1450k Answers

Share Your College Life Experience

Didn't find the answer you were looking for?

Search from Shiksha's 1 lakh+ Topics

or

Ask Current Students, Alumni & our Experts

×
×

This website uses Cookies and related technologies for the site to function correctly and securely, improve & personalise your browsing experience, analyse traffic, and support our marketing efforts and serve the Core Purpose. By continuing to browse the site, you agree to Privacy Policy and Cookie Policy.

Need guidance on career and education? Ask our experts

Characters 0/140

The Answer must contain atleast 20 characters.

Add more details

Characters 0/300

The Answer must contain atleast 20 characters.

Keep it short & simple. Type complete word. Avoid abusive language. Next

Your Question

Edit

Add relevant tags to get quick responses. Cancel Post