logo

Crowdly

Browser

Add to Chrome

Нехай дано опис класу і структури з однаковим набором полів public class One...

✅ 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 *** )

0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome