-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc.cs
More file actions
46 lines (37 loc) · 957 Bytes
/
c.cs
File metadata and controls
46 lines (37 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
// Buat C# program dengan 1 user-defined module. Let's say you write Y0.
// Record-type Y0 is non-nullary. One column is nesting collection of char.
// Write path-expression involving nested item within the record.
class Y0
{
// column with collection of char
char[] column1;
public Y0(char[] operand)
{
this.column1 = operand;
}
public char[] GetColumn1()
{
return column1;
}
static void Main()
{
char[] Obj = { 'H', 'e', 'l', 'l', 'o', ' ' };
Y0 RecordObject = new Y0(Obj);
// RecordObject.column1;
char[] NestedItems = RecordObject.GetColumn1();
Console.WriteLine(NestedItems);
}
}
// class Collection
// {
// char[][] column1;
// Collection(char[][] operand)
// {
// this.column1 = operand;
// }
// public static void Main()
// {
// Collection object1 = new Collection()
// }
// }