Which of the following is true about the overloading of ‘+’ and ‘-‘ operators?

Which of the following is true about the overloading of ‘+’ and ‘-‘ operators? Correct Answer They can be defined as either binary or unary operators

These are the two operators which can be defined as both binary as well as unary operators. Binary operators are those which take two operands and unary operators take a single operator. It is not possible to define them as ternary operators.

Related Questions

You are the administrator of eight SQL Server 2000 computers. You configure alerts on each server so that various problem conditions will be reported if they occur.You create 20 operators on one of the servers. You configure these operators by using the e-mail and pager contact information for the employees in your department. You configure the alerts on the server to send e-mail messages and pager messages to the appropriate operators.You need to configure the same 20 operators on the other seven servers. You want to do this with a minimum amount of administrative time.What should you do?
A state government granted licences to certain private operators to run stage carriages and contract carriages. The stage carriages could run only from one fixed point to another with fixed passengers without any right to pick up passengers en route. No such restrictions were imposed on contract carriages that were required to pay higher rates of tax than stage carriage operators. The contract carriage operators challenge the discriminatory nature of tax imposed on them. In respect of the above which one of the following is correct?
In a C expression using assignment operators, relational operators and arithmetic operators, the hierarchy of operations (in the absence of parenthesis) is
In the question below, are given a statement followed by three courses of actions numbered I, II and III. On the basis of the information given, you have to assume everything in the statement to be true, and then decide which of the following suggested courses of actions logically follow(s) for pursuing. Statement: The Department of Telecommunications (DoT) is set to conduct ‘special audits’ of mobile phone operators from fiscal 2011-12 onwards to check for under-reporting of revenue that might account for a sharp downturn in license fees and spectrum usage charges (SUC). Annual license fees and SUC paid to the government are calculated based on a telco’s revenue. The audit, to be resumed after a gap of three years, comes when license fee and SUC due to the government fell in 2017 by more than 23% on the year and is expected to fall this year too. This is due to the brutal price war, which expedited a bloody consolidation that saw a spate of exits and mergers & acquisitions that dented telecom revenues.  Courses of action: I. All telecom companies will be audited soon and DoT is preparing for this. This will be the third audit and notices will go out soon. II. DoT proposes to conduct audit/special audit of Aircel for the period of seven years for financial years 2011-2012 to 2017-2018. III. Operators fear the new round of audit could lead to a new dues being demanded from the already stressed sector, sparking more litigation and be a drag on time and resources. 
When the friend operator overloading is converted into member operator overloading _______________
If 2 classes derive one base class and redefine a function of base class, also overload some operators inside class body. Among these two things of function and operator overloading, where is polymorphism used?
Read the passage carefully and select the best answer to each question out of the given four alternatives.
Public opinion may be passive and false or active and real. It is claimed in theory that all governments are ultimately based on the opinion or sanction of the governed. But we find that in practice the people's rights are often trodden down and tyranny and oppression are allowed to continue. The government does it not because the people want it to do so but because they are too idle, too uneducated and too disunited or timid to oppose the govern ment. Such public opinion is passive and false and not an active verdict. But when we find people alert, intelligent and determined to let the government know their will, when they want to exercise actively their voice in the management of their country, we have an instance of true or active public opinion. True public opinion is formed by and expressed through the press, the platform, political parties and educational institutions. These have sacred duties to perform, duties on which depends the ultimate good of the entire community. The press today wields a tremendous influence, So it should support the causes and move ments and condemn the wrong one's and thus teach people to form correct opinion. A free and fair press ventilates the grievances of the public. Thus a healthy relationship develops between the people and the government through out an unbiased press. Political parties also help to create and regulate opinions. No less important part is played by the educational Institutions which train the minds of the young people who will be the citizens of tomorrow. It has been said that modern Germany and China have been made by their universities. It is necessary that the young and the growing minds should imbibe the spirit of fellow-feeling, the spirit of tolerance, the habit of compromise, and show due regard for the feelings and opinion of others without which a democratic society cannot function, let alone succeed. When there is true awakening of the people, we shall have the real and conscious public opinion. And justice will reign on earth and truly will the voice of the people be the voice of God.
According to the passage, which of the following is needed from the people to have true or active public opinion? 1. Alertness
2. Determination
3. Intelligence
4. Raising their voice
Which among the following are valid ways of overloading the operators?