Question: What is the output? #include #include using namespace std; class Movie { public: int rating = 1 ; void Print ( ) { cout <
What is the output?
#include
#include
using namespace std;
class Movie
public:
int rating ;
void Print
cout "Rating: rating stars" endl;
;
bool operator!const Movie& lhs const Movie & rhs
return lhsrating rhsrating;
int main
Movie movie;
Movie movie;
int currentRating;
movierating ;
movierating ;
if movie movie
moviePrint;
else
moviePrint;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
