answersLogoWhite

0

The new operators in C++ (but not in C) are new, delete, compl, and, and_eq, not, not_eq, or, or_eq, xor, xor_eq, bitand and bitor. Of those only the first two can really be said to aid OOP. However, other keywords that specifically aid OOP include class, friend, mutable, private, protected, public and template.

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake

Add your answer:

Earn +20 pts
Q: Four new operators added by c plus plus that aids OOP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

C plus plus bit-wise operators?

Are very useful. Examples: & | ^ ~


How relational operators represented in c plus plus?

The relational operators are == (equal), != (not equal), < (less than), <= (less than or equal to), > (greater than) and >= (greater than or equal to). All relational operators are boolean, returning true or false depending on the l-value relationship with the r-value, with respect to the operator.


What are special operators in c plus plus?

The only "special" operators in C++ are those that cannot be overloaded. That is; the dot member operator (.), pointer to member operator (.*), ternary conditional operator (:?), scope resolution operator (::), sizeof() and typeof().


Compare java arithmetic and logic operators with c arithmetic and logical operators?

They are very similar,but when we do logic operators there are still some differences.In c or c plus plus ,logic true can be expressed as'true' or '0',but in java,true is just 'true'.If you gave a zero,it will treat it as type of integer ,and so as false.


What is the definition of Punctuators and Operators in C plus plus?

The following are the C++ punctuators: ! % ^ & * () - + = {} | ~ [] \ ; ' : " < > ? , . / # Some punctuators are also operators. The exact meaning of a punctuator is dependant upon the context. For instance, the open/close brace {} is used as a punctuator to delimit a class declaration, a function definition or a compound statement. But as an operator, it used to delimit an initialisation list. The # punctuator only has meaning to the preprocessor, used to introduce a preprocessing directive. Some punctuators can also be combined to produce other operators, such as: :: .* -> ->* && ++ -- == != <= >= += -= *= /= %= ^= |= &= << <<= >> >>= ?: ... In addition, C++ also has the following punctuators as operators: new delete and and_eq bitand bitor comp not not_eq or or_eq xor xor_eq