tailieunhanh - Giáo trình phân tích khả năng ứng dụng phương thức gán đối tượng cho một giao diện đối lập p3

Tham khảo tài liệu 'giáo trình phân tích khả năng ứng dụng phương thức gán đối tượng cho một giao diện đối lập p3', kỹ thuật - công nghệ, điện - điện tử phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | bộ khởi tạo lớp Document lấy một tham số public Document string s Creating document with 0 s thực thi giao diện IStorable public void Read Implementing the Read Method for IStorable public void Write object o Implementing the Write Method for IStorable public int Status get return status set status value thực thi ICompressible public void Compress Implementing Compress public void Decompress Implementing Decompress thực thi giao diện ILoggedCompressible public void LogSavedBytes Implementing LogSavedBytes 183 thực thi giao diện IStorableCompressible public void LogOriginalSize Implementing LogOriginalSize thực thi giao diện public void Encrypt Implementing Encrypt public void Decrypt Implementing Decrypt biến thành viên lưu dữ liệu cho thuộc tính private int status 0 public class Tester public static void Main tạo đối tượng document Document doc new Document Test Document gán đối tượng cho giao diện IStorable isDoc doc as IStorable if isDoc null else IStorable not supported ICompressible icDoc doc as ICompressible if icDoc null 184 else Compressible not supported ILoggedCompressible ilcDoc doc as ILoggedCompressible if ilcDoc null không thể gọi được else LoggedCompressible not supported IStorableCompressible isc doc as IStorableCompressible if isc null IStorableCompressible ILoggedCompressible ICompress IStorable else StorableCompressible not supported IEncryptable ie doc as IEncryptable if ie null else Encryptable not supported .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.