✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
public class One {
public string s; public int n;
public One (string s, int n) {this.s = s; this.n = n;}}
public struct Two {
public string s; public int n;
public Two (string s, int n) {this.s = s; this.n = n;}}
Нехай в клієнтському класі створені об'єкти
One cx = new One ( "Петров", 5), cy = new One ( "Петров", 5), cz = new One ( "Миронов", 4);
Two sx = new Two ( "Петров", 5), sy = new Two ( "Петров", 5), sz = new Two ( "Миронов", 4);
int res = 0;
Відзначте оператори, що не приводять до помилок на етапі компіляції або виконання:
( *** CSharp 3.1 *** )