0% found this document useful (0 votes)
52 views2 pages

Activity #1.3: Advantages of C++ Language

C++ has several advantages as an object-oriented programming language including code reusability through concepts like classes, inheritance, and polymorphism. It also maintains backward compatibility with C and allows low-level programming while also supporting high-level functions. C++ has good performance for well-designed software and a large community for support. However, it still has some security issues from features like pointers and global variables. Memory management in C++ also requires manual handling without a garbage collector. Threads were also not initially supported in C++.

Uploaded by

say whhhuuut
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views2 pages

Activity #1.3: Advantages of C++ Language

C++ has several advantages as an object-oriented programming language including code reusability through concepts like classes, inheritance, and polymorphism. It also maintains backward compatibility with C and allows low-level programming while also supporting high-level functions. C++ has good performance for well-designed software and a large community for support. However, it still has some security issues from features like pointers and global variables. Memory management in C++ also requires manual handling without a garbage collector. Threads were also not initially supported in C++.

Uploaded by

say whhhuuut
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Kyle S.

Mangabat Discrete Structure and Programming C++


BSCS-1 September 26, 2021

ACTIVITY #1.3
Advantages of C++ Language
-Based of the videos that I have watched, one of the biggest advantages in
using C++ is because of its object-oriented programming language which
means it includes concepts like classes, inhericatance, polymorphism, data
abstraction and encapsulation. This allows code reusability and makes a
program even more reliable. The other advantage is its backward
compability with the C program, which means it allows the developer to
migrate legacy systems developed in C and also allows the user to compile
C program using a C++ compiler and C++ being an upgrade of C program
which is a procedural language closely related to the machine language
means that it allows low-level manipulation of data at a certain level.
Embedded systems and compilers are also created with the help of C++,
and C++ being a middle-level programming language means C++ combines
the features of both high-level and low-level languages. It can be used for
low-level programming, such as scripting for drivers and kernels. It also
supports functions of high-level programming language, such as scripting
for software applications etc.
C++ also have better performance, allowing the developer to develop well-
designed software using the object-oriented concept resulting in better
performance and stability.
Lastly, C++ has a large community that supports it by providing online
courses and lectures, both paid and unpaid. Statistically speaking, C++ is the
6th most used and followed programming language on Stack Overflow and
GitHub.

Disadvantages of C++ Language


-C++ being an object-oriented programming language has its many
advantages but although object-oriented programming offers a lot of
security to the data being handled as compared to other programming
languages that are not object-oriented like C, certain security issues still
exist due to the availability of friend functions, global variables, and
pointers. Speaking of pointers, pointers in C++ are relatively difficult
concept to grasp and it consumes a lot of memory. Misuse of pointer like
wild pointers may cause the system to crash or behave anomalously.
In terms of memory, C++ gives the user complete control of managing the
memory using DMA, but C++ lacks the feature of a garbage collector to
automatically filter out unnecessary data. C++ also does not support any
built-in threads. Threads is a relatively new concept in C++ which wasn’t
intially there. Now C++ is currently capable of supporting lambda functions.

You might also like