M
M
Muriam2019-03-25 09:01:11
C++ / C#
Muriam, 2019-03-25 09:01:11

How many paradigms can be used simultaneously when writing code?

C++ is a multi-paradigm language. Does the use of one paradigm preclude the use of another paradigm or not? Or is it possible to use several paradigms at once when writing code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Shatunov, 2019-03-25
@Muriam

So, well, let's go then from the beginning.
A programming paradigm is a set of fairly strict rules that determine how the computational processes of a program are organized.
In general, a paradigm (para (Greek) - about; digma (Greek) - sample, sample) is a form of some concept, stated in the form of formal rules.
For example, here are a few programming paradigms that the C++ language supports :
The implementation of the program code by means of modern C ++ becomes much easier due to the complication of the code itself, thanks to the joint use of various programming paradigms. Part of the code does not need to be executed in the OOP style, part of the code is more convenient in the form of function or class templates, and there is no need to try to make part of the code outside the OOP paradigm.

A
Alexander, 2019-03-25
@alexr64

As much as you can. In the end, it's just the order of letters and numbers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question