Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Assessment myInstance = new Assessment();


            myInstance.FirstName      = "Jeff";
            myInstance.LastName       = "Paltridge";
            myInstance.AssessmentName = "Core Portfolio 5";
            myInstance.Mark           = 99.9;

            Console.WriteLine($"First Name: {myInstance.FirstName} Last name: {myInstance.LastName} Assessment : {myInstance.AssessmentName} Mark: {myInstance.Mark} Comments: <{myInstance.Comment}>");


            Assessment(string firsname, string lastname, string assessmentname, double mark, string comment)
            {
                FirstName      = firsname;
                LastName       = lastname;
                AssessmentName = assessmentname;
                Mark           = mark;
                Comment        = comment;
            }
        }