In this article, we’ll continue to look at Object-Oriented Programming- abbr. OOP-. The topics are Inheritance and Polymorphism. These topics are two of the primary characteristics of object-oriented programming.

  • Inheritance enables you to create new classes that reuse, extend, and modify the behavior defined in other classes.
  • Polymorphism is a Greek word that means “many-shaped”. And it occurs when we have many classes that are related to each other by inheritance.


Inheritance is a concept in which you define parent classes and child classes. So, It is the mechanism by which one class is allowed to inherit the features (fields…

Object-Oriented Programming

In this article, we will see what does Object-Oriented Programming — abbr. OOP- means. Many times, we see it in action but do we really know what it actually implies for? Let’s jump right in.

Everything we see around is basically an object and OOP is a model that assumes everything is, well, an “object”.


This project is FreeCodeCamp‘s third APIs and Microservices Project. In this project, we’ll be create a simple URL shortener API.

We’ll be using Node.js/Express and MongoDB


  • Create a MongoDB database on MongoDB Atlas.
  • Install all the required npm packages.
  • Define the environment variables.
  • Create an express server.
  • Connect to the database.
  • Create the URL Model.
  • Create the API routes post and get methods.
  • Conclusion

Step 1: Create a MongoDB database on MongoDB Atlas

We learned before create a MongoDB database on MongoDB Atlas. You can check out the Freecodecamp MongoDB lecture and MongoDB documentation for more information.

We need…

I built this microservice for freeCodeCamp’s second APIs and Microservices Project.

Basically it accepts API requests and will respond with a JSON object containing the user’s IP address, preferred language and information about their browser and operating system.

I used freeCodeCamp’s Glitch boilerplate project. Here is a starter link.

“name”: “request_header”,
“version”: “0.0.1”,
“description”: “API project for freeCodeCamp”,
“main”: “server.js”,
“scripts”: {
“start”: “node server.js”
“dependencies”: {
“express”: “^5.0.0-alpha.2”,
“cors”: “^2.8.5”,
“request-ip”: “^2.1.3”
“engines”: {
“node”: “4.4.5”
“repository”: {
“type”: “git”,
“url”: “!/project/welcome-project"
“keywords”: [
“license”: “MIT”

We should…


Our goal is freeCodeCamp APIs and Microservices certificate. We have to do five project. First one is Timestamp Microservice 🕒🚀

I used freeCodeCamp Glitch boilerplate project. Here is a starter link.

Full Stack Developer👨🏻‍💻 Camper 🏕️

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