Quote:If I'll send solution then why I'm here to ask u question bcz I didn't able to solve
Logical AND is simple:
X && Y is true if and only if A and B are both true. In all other cases it is false.
Overloading it is trivial: Types of Operator Overloading in C++ - GeeksforGeeks
] just read the article, and learn what it says.
Then read your exact homework question again carefully, and it should be pretty simple to do.
Give it a try - this is the easy stuff!