- Q What is flaming?
- Q Can you explain the concept of elementary process?
- Q What are the main families of threads?
- Q Which are the vessels that drain filtered blood from the kidneys?
- Q Right to Education through which amendment?
- Q What are the main features of impala?
- Q Critically analyse the contribution of Amrita Bazar Patrika in the growth of Indian nationalism.
- Q What is stand-alone mode?
- Q Under Shahjehan Qandhar was conquered by:
- Q What are some common social media marketing mistakes business make?
- Q Define Hook's law.
Question
Define the intersection rule for overloaded operators.
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
Answers
For overloaded functions with more than one parameter, argument matching is more complex. So, the intersection rule was adopted which uses the following procedure:
1. For each argument in the invocation, determine the set of function definitions that contain the best matches for that argument's type.
2. Take the intersection of these sets, and if the result is not a single definition, then the call is ambiguous.
3. The resulting definition must also match at least one argument better than every other definition. Your Comment
1. For each argument in the invocation, determine the set of function definitions that contain the best matches for that argument's type.
2. Take the intersection of these sets, and if the result is not a single definition, then the call is ambiguous.
3. The resulting definition must also match at least one argument better than every other definition. Your Comment
- 0
- 0
- New Answer
- Contributors: *,
More operator Questions..
What is the purpose of . Operator?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
Define scope resolution operator?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
When a class member is defined outside the class, which operator can be used to associate the function definition to a particular class
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
Where does the server operator group share the folder?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
What is the difference between pre decrement operator and post decrement operator?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 0 )
- Tags: operator,
Implement division (without using the divide operator, obviously).
- 0
- 0 |
- |
- Post Answer |
- Answers ( 0 )
- Tags: operator,
The ++ operator is used for incrementing and the -- operator is used for decrementing.
a)True
b)False
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
What is the use of ?: operator?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
What is a modulus operator? What are the restrictions of a modulus operator?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 0 )
- Tags: operator,
What are the type of operators available in SQL?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
Can you please explain the difference between boolean & operator and the && operator in java programming?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
Which of the following pairs of functions should not be combined to provide proper segregation of duties?
A. Tape librarian and computer operator
B. Application programming and data entry
C. Systems analyst and database administrator
D. Security administrator and quality assurance
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
What is the purpose of ge operator
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
What is an operator function? Describe the function of an operator function?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 0 )
- Tags: operator,
Which of the following operators is incorrect and why? ( >=, <=, <>, ==) ?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 0 )
- Tags: operator,
Explain unary arithmetic operator with example?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 0 )
- Tags: operator,
class fig2d{
int dim1, dim2;
public:
fig2d() { dim1=5; dim2=6;}
virtual void operator<<(ostream & rhs);
};
void fig2d::operator<<(ostream &rhs){
rhs <dim1<<" "<dim2<<" ";
}
class fig3d : public fig2d{
int dim3;
public:
fig3d() { dim3=7;}
virtual void operator<<(ostream &rhs);
};
void fig3d::operator<<(ostream &rhs){
fig2d::operator <<(rhs);
rhs<dim3;
}
void main(){
fig2d obj1;
fig3d obj2;
obj1 << cout;
obj2 << cout;
}
}
class fig3d : public fig2d{
int dim3;
public:
fig3d() { dim3=7;}
virtual void operator<<(ostream &rhs);
};
void fig3d::operator<<(ostream &rhs){
fig2d::operator <<(rhs);
rhs<
}
void main(){
fig2d obj1;
fig3d obj2;
obj1 << cout;
obj2 << cout;
}
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
Is right-to-left or left-to-right order guaranteed for operator precedence?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 0 )
- Tags: operator,
What is operator in Python?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,
What are the benefits of operator overloading?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,