What is the difference between both C and C ++?

Question

Make a discussion that can be used in a conference concerning. So that this problematic question below
So the question is- “What is the difference between both C and C ++? Also write Would you rather use one over the other?”

Explanation

There is the thing that is said to be C++ language that C++ extended version of C.  So Main difference between these two is the object-oriented feature provided by the C++ language. Also, C++ is more advance than C.

So, the difference between C and C ++ is as follows:

C C++
C is a procedural programming language C++ is an object-oriented programming language.
 In C, the program is divided into functions So that C++, the program is divided into classes and objects.
C emphasizes more on doing things C++ emphasizes the data more.
 The productivity of C programming is low. The productivity of C++ programming is high
Data security is  low in C  Data security is high in C++.

 

So, thus because of the above reasons, We will more consider using C++. So, C++ provides many features and security C++ is always useful. But C

Also, C++ has different features. So, they are as follows:

    • Encapsulation: Encapsulation is a term that is defined as the collection of data or any information under a single line. So that we have our data in one place.
    • Data hiding: Data hiding means, in C++ there are access specifiers known as public, private, and protected. So by using an access specifier we can hide our data.
    • Data abstraction: Data abstraction is a term where the user can only see the external view. And the internal process is not understood by the user. So, the user will not be aware of the internal programming.
    • Inheritance: this means the one class in the program can access the properties of another class.
    • Polymorphism: Polymorphism is a term where it allows functions with the same names and different parameters in the program.

 

 

Also read, Draw ER diagram, and elaborate database design outline.

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *