println(stud1Mark1.InternalMarks)stud1Mark2.InternalMarks = 87println(stud1Mark2.InternalMarks)When we run the above program using playground, we get the following result:
97
87 println(stud1Mark1.InternalMarks)stud1Mark2.InternalMarks = 87println(stud1Mark2.InternalMarks)When we run the above program using playground, we get the following result:
97
87