Why do we need classes in object oriented programming

ITIL Intermediate Continual Service Improvement eLearning Plus Exam Prep

I’ll take a more simpler layman approach to answer this question.

Let us assume we have to write a program for a car factory.

This factory has multiple production lines manufacturing cars.Cars have lot of individual components like engine, gear, exhaust, windows, steering system etc.

Imagine a 100 cars with 50 components each.If we have to describe this snap shot without OOP it will take 50×100 = 5000 variables and complex referencing.

With OOP, we can describe it easily with less code(100 objects) and nicely hierarchy wise referenced.

Also we gain more reusable,scalable and maintainable code.

Added benefits – easy conceptualized model close to real world which means less gap between functionality desired and functionality delivered.

More Resources on Why do we need classes in object oriented programming:
https://en.wikipedia.org/wiki/Simula
https://en.wikipedia.org/wiki/Tony_Hoare
http://www.fh-jena.de/~kleine/history/languages/Simula-CommonBaseLanguage.pdf
http://www.olejohandahl.info/old/birth-of-oo.pdf
https://en.wikipedia.org/wiki/Ole-Johan_Dahl
http://archive.computerhistory.org/resources/text/algol/ACM_Algol_bulletin/1061032/p39-hoare.pdf
http://archive.computerhistory.org/resources/text/algol/ACM_Algol_bulletin/1061064/p5-hoare.pdf

Read more about Why do we need classes in object oriented programming:

The Art of Service offers innovative competence development programs for IT Best Practices to support the educational needs of IT Professionals.

This question originally appeared on Quora.

The Art of Service offers innovative competence development programs for IT Best Practices to support the educational needs of IT Professionals., Learn more about ITIL Intermediate Continual Service Improvement eLearning Plus Exam Prep HERE:

ITIL Intermediate Continual Service Improvement eLearning Plus Exam Prep and Why do we need classes in object oriented programming

ITIL Intermediate Continual Service Improvement eLearning Plus Exam Prep - Why do we need classes in object oriented programming

ITIL Intermediate Continual Service Improvement eLearning Plus Exam Prep and Why do we need classes in object oriented programming

ITIL Intermediate Continual Service Improvement eLearning Plus Exam Prep - Why do we need classes in object oriented programming

Previous post:

Next post:

live chat mac