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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started