Course Content
Core Java
About Lesson

Initially called as C with Classes as it was began as an enhancement of C programming language.

Invented by Bjarne Stroustrup. He included following features to the C for C++

  1. Classes
  2. Derived Classes (Inheritance)
  3. Public/private access control
  4. Constructors and destructors

Features

  1. Object Oriented Programming: Unlike C which is procedural programming language, C++ supports Object-Oriented programming through Class, Objects, Encapsulation, Polymorphism, Inheritance, Abstraction.
  2. Machine Independent: The code created on one machine/architecture can run on various machines while no machine-specific changes.
  3. Platform Dependent: The compiled code generated by the compiler is OS dependent. That is executable made to run on Linux won’t run on Windows.
  4. Generic Programming with Templates: C++ allow for generic programming. Templates enable the creation of functions and classes that can work with any data type, enhancing code flexibility and reusability.
  5. Strongly Typed: C++ is a statically typed language, meaning that data types are determined at compile time. This helps catch errors early in the development process and can improve performance.
  6. Standard Library (STL): C++ provides a variety of container classes such as vectors, lists, and maps, which offer efficient data storage and manipulation. STL includes a collection of algorithms for tasks such as sorting, searching, and manipulating containers. These algorithms are highly optimized and can be easily integrated into C++ code.
  7. Memory Management: C++ allows developers to manually allocate and deallocate memory. This gives developers fine-grained control over memory usage but requires careful management to avoid memory leaks and errors.
  8. Performance: C++ is known for its high performance and efficiency, making it well-suited for applications that require low-level control over hardware resources, such as system programming, game development, and high-performance computing.

Common Use-Cases

  1. Desktop Applications: C++ is used in the development of desktop applications such as productivity software, graphic design tools, and integrated development environments (IDEs). Its performance and cross-platform capabilities make it suitable for building complex desktop applications.
  2. System Programming: OS, Device Drivers.
  3. Game Development
  4. Financial Applications: C++ is used extensively in the finance industry for developing trading platforms, risk management systems, and algorithmic trading strategies. Its performance, low latency, and ability to handle large volumes of data make it a popular choice for financial applications.

Scroll to Top