answersLogoWhite

0


Best Answer

All languages are interesting to some degree or another. Programming languages in particular allow us humans to communicate with and ultimately control computers, bending them to our will. However, some languages are better than others for certain tasks. C++ is a general purpose, cross-platform, high-level language that can produce highly-efficient machine code (the native language of the computer). What makes it interesting is subjective -- each programmer will have their own likes and dislikes -- but ultimately the language gives a high-degree of control over the hardware, exploiting specific features of the architecture.

The same kind of thing can be achieved using Assembly Language (a low-level language), and in many ways would be regarded as a more interesting language than C++. But it is extremely difficult to work with. Even if you have access to a vast library of pre-written routines, you still require intimate knowledge of the underlying hardware and must write programs in minute detail. C++ can achieve similar results, but the abstraction between the hardware and the code you write is such that you needn't concern yourself with the hardware quite so much. That is, a single instruction in C++ can easily generate dozens of assembly instructions.

C++ becomes more interesting when compared to languages that don;t provide the level of control, such as Java. This is an entirely object-oriented programming language, with a higher-degree of abstraction (with little or no interaction with the underlying architecture). Rather than producing machine code, Java produces byte code which can be run on any platform that supports the Java Virtual Machine. As such, it is more portable as programs need only be compiled once to run on any platform whereas C++ code must be compiled separately for each platform, and must include code to filter out code that is irrelevant to the current platform. However, since Java programs must run in a virtual machine, they are very much slower than equivalent C++ programs.

C++ is also more interesting in that you aren't restricted to using object-oriented programming principals. You can choose to mix C++ code with C-style code (which is a structured language) and also raw assembly routines, thus making it far more flexible than Java, which is entirely object-oriented.

Although there's little you can't do in C++, that doesn't make it the best language in every situation. For instance, if you have a deadline to meet, C++ might be too complex a language to meet that deadline, thus forcing you to use a more abstract language designed specifically for rapid application development (RAD). For instance, it's often useful to model algorithms and design concepts using a RAD before committing yourself to a more lengthy software development in C++. The feedback from the RAD can, in fact, reduce the overall development cycle as the models can often be incorporated into the final design with only minimal or trivial modification.

However, C++ comes into its own when high-performance is the main criteria, and raw Assembly Language would be far too costly to implement in a reasonable time-frame. Modern compilers can optimise the machine code in much the same way an Assembly Language programmer exploits hardware features to produce highly-efficient code, but there's often room for further improvement. However, C++ is flexible enough to allow the programmer to make these adjustments by hand. And, for me, that's where things can get really interesting.

User Avatar

Wiki User

βˆ™ 11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 10y ago

C++ allows the programmer to write general purpose programs using high-level object-oriented code to produce robust, scalable solutions that perform extremely well on a wide variety of hardware. The programmer is also free to incorporate low-level procedural code very similar to C in order to produce highly-efficient machine code. This gives the programmer the best of both worlds.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 9y ago

C++ gives you all the benefits of low-level C as well as high-level abstraction through object oriented programming. Hence it is often called a mid-level language. In reality it is just "C with Classes", which was the original name before it became C++.

The abstraction and modularisation of code allows you to express your ideas directly within the code itself. The C++ standard library is replete with ideas expressed in code to the point that code becomes self-documenting. Self-explanatory code is much easier to read and maintain than code containing lots of user-defined comments. Although comments are useful, if over-used they can actually get in the way of the reader, interrupting the flow of the code. More importantly, the compiler ignores user-comments -- they are only of benefit to the programmer, and only if they actually read them! By expressing ideas directly in code, the compiler can help the programmer track down and eliminate bugs more easily -- especially those invariants that would otherwise be guarded by an otherwise useless comment.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 11y ago

C++ is a general-purpose programming language that compiles to machine code. By comparison, Java compiles to byte code, which needs to be interpreted by the Java virtual machine. Although this makes Java much more portable than C++, performance suffers as a result of the interpretation. C++ also includes pointer variables that allow more efficient coding, similar to that of assembler language.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 11y ago

Primarily to add object-oriented programming to the ANSI C language. C++ literally means the successor to C, and was originally developed as an extension to ANSI C called 'C with Classes', which later became a language in its own right, renamed C++. It still inherits from ANSI C, with some minor differences primarily to conform with OOP principals, but you can choose to use ANSI C or C++, or a mixture of both, even in the same program.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why did c plus plus become more popular inspite of so many object oriented languages available?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are all the objects oriented programmes?

For a fairly exhaustive list, see the related link to this question. Popular languages are C++, Java, Objective-C, Visual Basic, and Ruby.


Why object oriented programming is popular than other programming language?

Not, I don't think OO languages are used more than the non-OO ones, if your "popularity" is based on the number of the developers.


How do you make an program in object oriented programming?

Object Oriented Programming is the technique to create programs based on the real world..object oriented programming model programs are organized around objects and data rather than actions and logic. In OOP based language the principal aim is to find out the objects to manipulate and their relation between each other.OOP offers greater flexibility and compatibility and is popular in developing larger application.


What is pure object oriented language?

Object-oriented (OO) applications can be written in either conventional languages or OOPLs, but they are much easier to write in languages especially designed for OO programming. OO language experts divide OOPLs into two categories, hybrid languages and pure OO languages. Hybrid languages are based on some non-OO model that has been enhanced with OO concepts. C++ (a superset of C), Ada 95, and CLOS (an object-enhanced version of LISP) are hybrid languages. Pure OO languages are based entirely on OO principles; Smalltalk, Eiffel, Java, and Simula are pure OO languages.Reference: Tokar, Joyce L. "Ada 95: The Language for the 90's and Beyond."" According to me JAVA is not a pure oop Language ,because java contains primitive datatypes that's not an Objects."SmalltalkEiffeljavaa programming language that includes all the oops concepts i,e object, class , inheritance,abstraction, encapsulation, data binding, and message passing is called a completely object oriented programming.. example:java.


How many programming languages are based on C?

C++, Java, Perl, Python, PHP, JavaScript, LPC, C# is the most popular languages based on C, but there is probably more languages.

Related questions

How many languages have a dictionary?

It is estimated that there are around 7,000 languages spoken in the world, with varying levels of documentation and dictionaries available for each language. Some popular languages may have extensive dictionaries, while others may have limited resources available.


What are all the objects oriented programmes?

For a fairly exhaustive list, see the related link to this question. Popular languages are C++, Java, Objective-C, Visual Basic, and Ruby.


How many Jerry Spinellis books are in other languages?

Jerry Spinelli's books have been translated into multiple languages, with some of his popular works available in languages such as Spanish, French, German, and Italian. The number of his books available in other languages varies depending on the publisher and the demand for translations in different regions.


Why object oriented programming is popular than other programming language?

Not, I don't think OO languages are used more than the non-OO ones, if your "popularity" is based on the number of the developers.


What are the most popular languages in Africa?

Arabic


How do you make an program in object oriented programming?

Object Oriented Programming is the technique to create programs based on the real world..object oriented programming model programs are organized around objects and data rather than actions and logic. In OOP based language the principal aim is to find out the objects to manipulate and their relation between each other.OOP offers greater flexibility and compatibility and is popular in developing larger application.


What is pure object oriented language?

Object-oriented (OO) applications can be written in either conventional languages or OOPLs, but they are much easier to write in languages especially designed for OO programming. OO language experts divide OOPLs into two categories, hybrid languages and pure OO languages. Hybrid languages are based on some non-OO model that has been enhanced with OO concepts. C++ (a superset of C), Ada 95, and CLOS (an object-enhanced version of LISP) are hybrid languages. Pure OO languages are based entirely on OO principles; Smalltalk, Eiffel, Java, and Simula are pure OO languages.Reference: Tokar, Joyce L. "Ada 95: The Language for the 90's and Beyond."" According to me JAVA is not a pure oop Language ,because java contains primitive datatypes that's not an Objects."SmalltalkEiffeljavaa programming language that includes all the oops concepts i,e object, class , inheritance,abstraction, encapsulation, data binding, and message passing is called a completely object oriented programming.. example:java.


What kinds of floor mats are available for commercial businesses?

There are many different types of floor mats available for business. The most popular is a large, black mat that has a rubber bottom side for better grip. You can purchase these mats at any large, business oriented retailer, such as Sam's Club, or at your local hardware store.


What are the 2 most popular Chinese languages?

mandarin and cantonese


What are robotics languages?

The popular programming languages which are generally used to write a robotic program may be developed in c, c++, java etc.., these languages are more flexible when compare to the other languages.


Is stress on English in India threat for their mother tongue Hindi?

Although Hindi is spoken in India and is popular in some regions, there are many other languages spoken in India. Many people living in India learn multiple languages, and several languages popular in India continue to be used in India and elsewhere. Both within and outside India, many people elect to study the languages of India and preserve them. Even if adoption of English impacts adoption of other languages popular in India, none of India's most popular languages is yet at risk of being lost, and many continue to grow and change.


What are the 3 most popular languages?

The three most popular languages in the world are English, Mandarin Chinese, and Spanish. These languages are widely spoken and used in many countries across the globe.