Complete the below C# code to create a Patient class in OOP which has three attributes ID, Name, and Medicare Number and one method called View to show the values of Name and Medicare Number (4 marks, 0.5 for each blank)
public class Patient{
public ….. ID …..
public ….. Name…..
public int ……. {get;set;}
public string ………..(){
return "Name is: " + this………… + " and the Medicare number is: "+ this……………;
}
}
b) Complete the code below to create an instance from the class and output on the screen "Name is: Bob and the Medicare number is: 456123789" (3 marks, 0.5 for each blank)
Using System;
public class Program
{
public static void Main(string[] args)
{
………. p1=new Patient();
p1……………="…………";
p1…………….=456123789;
…………..WriteLine(……………….);
}
}