PRN212_-_PE_-_SU_2024_2166.webp
Hương Giang1

PRN212_-_PE_-_SU_2024_2166.webp

Question 1. (5 points)
You are asked to write a console application that includes:
Class Student that has: 4 public properties: Id (int), Name (string), Dob (DateTime), Major (string)and some necessary constructors and functions.
The generate delegate: void Presentation<T> (T item)
Generate class Group<T> that has:
Public property Name (string)
Private member that can store a list of T.
Ο Necessary constuctor.
Three public functions:
void Add(T item): add new item type T into the private list.
void Remove(T item): remove one item from the private list.
void Show(Presentation<T> presentation): display Name and items in the private list of group to the console. Each item in list must display by the definition of presentation.
Zoom
+ 115%
Close
Chưa có bình luận nào.

Thông tin

Category
PRN212
Thêm bởi
Hương Giang1
Ngày thêm
Lượt xem
3,212
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN212_-_PE_-_SU_2024_2166.webp
File size
195.7 KB
Dimensions
1920px x 991px

Share this media

Back
Bên trên Bottom