- Q Four men - Abraham, Bobby, Clinton and Denial - are standing in a straight line. 1. One man is fair, handsome and unscarred. 2. Two men who are not fair, are each standing next to Abraham. 3. Bobby is the only man standing next to exactly one handsome man. 4. Clinton is the only man not standing next to exactly one scarred man. Who is fair, handsome and unscarred?
- Q What is the difference between struct and class in .NET?
- Q Human creatures breathe in what and give out what
- Q What is the earths core made of?
- Q What is the default layout of the panel and frame ?
- Q The Olympic Games are held ____ four year.
- Q The most reactive among the halogen is?
- Q Which are the molecules that make possible active transport through membranes?
- Q Give the classification of Sparrow in animal kingdom?
- Q What is the Roman Numeral for 1000
- Q Which of the following are object definitions?
Question
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,
- 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,
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,
Situation - The 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: operator,