Classes c#
Creating classes : Create a class called ship Properties incl. name - a string that holds ship name Year - a int that holds the year that the ship was born Create a constructor to initialize both instance variables, all data in the class must be encapsulated. Create a overload constructor that receives 2 arguments ,the values of which are assigned to the instance variable Based on the above is this correct - Please advise if anything needs fixing. Class Ship { //constructor that is encapsulated Private ShipInitialize{ Private string name {get;set;} Private int year {get;set;} } //overload constructor Private ShipInitialize(string year, int year){ } console.Write("Enter the Ship year: "); year = Convert.ToInt32(Console.Readline()); return year; console.Write("Enter the Ship name: "); name = Console.Readline(); return name; static void Main (string []args){ } ShipInitialize(); // not sure about parameters when calling }