Fundamentals of OOPS

  1. It makes reading, understanding, and maintaining code much easier than when it was written with functions. Thus reducing maintaining cost.
  2. Because of this solving problems becomes easy. No matter the difficulty, problems can be easily solved.
  3. It works on the principle of DRY — Don’t Repeat Yourselves as once an object has been made we can use it as many times as wanted, thus saving a lot of time and effort.
  4. It hides the codes which are not necessary with the help of data abstraction.
  1. It is not used when dealing with small problems as it is more suited for a complex or bigger problem.
  2. There is a sudden increase in problem-solving time.
  3. It requires proper planning and execution as a mistake can cost him very much.
  4. Since it requires proper planning and has to be built from the bottom, its execution rate is affected deeply as its processing speed is much lower than the procedural-based programs.
  1. Polymorphism
  2. Inheritance
  3. Abstraction
  4. encapsulation
  1. Compile Time Polymorphism
  2. Run Time Polymorphism
  1. Function overloading
  2. Operator overloading
  1. Single Inheritance
  2. Multiple Inheritance
  3. Multi-Layer Inheritance
  4. Hierarchical Inheritance
  5. Hybrid Inheritance
  1. Requires more time to execute a program as it has to navigate different classes at different times.
  2. The parent and the child class have a are very tight bond which means that if any modifications have to be made in the program both parent and child class have to be modified accordingly
  3. It is very complex as already told before the parent and the child classes are tightly bound together, thus if not handled carefully may lead to some unexpected errors, and due to its complexity, finding the error may become the most difficult part.

--

--

--

I am a front-end developer from India with over one year of experience in freelancing with skills like Git, HTML5, CSS3, Bootstrap 4&5, and React.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Tips for Engineering a Company Rebrand

Tech Enthusiasts weighing in on Container Native Storage

Taints, Tolerations and Node affinity in Kubernetes

Free Fire Red Samurai Bundle in Indian Server | The Digitel Media

How to tech lead a software project

Family bot building project update #1

Extracting (digitising) data from plots in scientific papers or images

How to Create Blob(Binary Large Object) Storage in Azure.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ateev Duggal

Ateev Duggal

I am a front-end developer from India with over one year of experience in freelancing with skills like Git, HTML5, CSS3, Bootstrap 4&5, and React.

More from Medium

Coding with Java

Java Programming Language Tutorial: Else-If Statements

The Basics of Breakpoints you Might not Know

Diving into Java (with strong JavaScript and Python background) Part 3(Arrays, L, and Objects)