Code in C# (OOP Concept) Define a class named Movie.Include private fields for the title, year and name of the director. Include following member functions SetTitle, SetYear, SetDirector. Display()...


Code in C# (OOP Concept)


Define a class named Movie.Include private fields for the title, year and name of the director.


Include following member functions



  • SetTitle,

  • SetYear,

  • SetDirector.

  • Display() that displays all the information about a Movie.

  • Compare() which accepts 2 objects of type Movie and displays whether or not they were released in the same year and also whether the Directors are same.This method must exist as a class member and not as an instance member.


Provide a default constructor and a copy constructor to this class.


Illustrate all the constructors as well as all the methods by defining two objects movie1 and movie2.




Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here