Question: write a c++ program using the following: Define a class with the following properties. a) Class name : movie b) Private variables should store years

write a c++ program using the following:

Define a class with the following properties. a) Class name : movie b) Private variables should store years of release for two movies. c) Define a function to set the years. Call the functions to set the years from the main function. d) For read function, read out which movie is the older one and which is the newer one. For eg. print out "Movie 1 is released in aaa year and Movie 2 is released in bbb year. So 1 is older than 2." e) If you want to be more creative, try to ask the movie details, names of movies and year from the user. (There are multiple submissions to this assignment. So Please complete above task, better submit it and then try to modify the code for the input from user.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!