DEV Community

silambarasan rajendran
silambarasan rajendran

Posted on

Day-05: Programming Paradigms

Program paradigms:
What is paradigm - conceptualize and structure the implementation.

Types of program paradigms:
Imperative – code directly controls execution flow and state change, explicit statements that change a program state
Declarative –
Concurrent programming –
Constraint programming –
Dataflow programming –
Distributed programming –
so on...

Source: https://en.wikipedia.org/wiki/Programming_paradigm

*** Let us discuss about OOPs Concepts from Imperative paradigm ***
What is Object and Class?

Class is like a blueprint or our imagination of how something should be.
Object is like the physical entity that exists in real life.

A class can exist without an object, but an object cannot exist without a class.

Real time Reference:
Alright, let's make it even simpler:

Class is like a recipe. It tells you how to make something.
Object is the thing you actually make from that recipe.
Enter fullscreen mode Exit fullscreen mode

For example:

Class: The recipe for making a cake.
Object: The actual cake you baked.
Enter fullscreen mode Exit fullscreen mode

You can have many cakes (objects) from one recipe (class), but you can’t have a cake without a recipe!

Heroku

Amplify your impact where it matters most — building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

Introducing RTABench

To meet the need for real-time analytics workloads, we developed RTABench, a benchmark designed to test databases with these specific requirements. RTABench focuses on essential query patterns such as joins, filtering, and pre-aggregations.