Now that class GradeBook is defined in a header, the class is reusable dịch - Now that class GradeBook is defined in a header, the class is reusable Việt làm thế nào để nói

Now that class GradeBook is defined

Now that class GradeBook is defined in a header, the class is reusable. Unfortunately, plac- ing a class definition in a header as in Fig. 3.9 still reveals the entire implementation of the class to the class’s clients—GradeBook.h is simply a text file that anyone can open and read. Conventional software engineering wisdom says that to use an object of a class, the client code needs to know only what member functions to call, what arguments to provide to each member function and what return type to expect from each member function. The client code does not need to know how those functions are implemented.
If client code does know how a class is implemented, the programmer might write client code based on the class’s implementation details. Ideally, if that implementation changes, the class’s clients should not have to change. Hiding the class’s implementation details makes it easier to change the class’s implementation while minimizing, and hopefully eliminating, changes to client code.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Bây giờ mà lớp GradeBook được định nghĩa trong một tiêu đề, các lớp học là tái sử dụng. Thật không may, plac-ing một định nghĩa lớp trong một tiêu đề như trong hình 3.9 vẫn cho thấy thực hiện toàn bộ lớp học để các lớp học clients—GradeBook.h là chỉ đơn giản là một tập tin văn bản mà bất cứ ai có thể mở và đọc. Công nghệ phần mềm quy ước khôn ngoan nói rằng để sử dụng một đối tượng của một lớp học, mã khách hàng cần phải biết chỉ thành viên chức năng để gọi, những gì đối số cung cấp đến mỗi chức năng thành viên và những gì loại để mong đợi từ mỗi chức năng thành viên trở lại. Mã khách hàng không cần phải biết làm thế nào những chức năng được thực hiện.
nếu khách hàng mã biết làm thế nào một lớp được thực hiện, các lập trình viên có thể viết mã khách hàng dựa trên các lớp học thực hiện chi tiết. Lý tưởng nhất, Nếu đó thực hiện thay đổi, các lớp học khách hàng nên không cần phải thay đổi. Ẩn các lớp học thực hiện chi tiết làm cho nó dễ dàng hơn để thay đổi các lớp học thực hiện trong khi giảm thiểu, và hy vọng loại bỏ, thay đổi mã khách hàng.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Now that class GradeBook is defined in a header, the class is reusable. Unfortunately, plac- ing a class definition in a header as in Fig. 3.9 still reveals the entire implementation of the class to the class’s clients—GradeBook.h is simply a text file that anyone can open and read. Conventional software engineering wisdom says that to use an object of a class, the client code needs to know only what member functions to call, what arguments to provide to each member function and what return type to expect from each member function. The client code does not need to know how those functions are implemented.
If client code does know how a class is implemented, the programmer might write client code based on the class’s implementation details. Ideally, if that implementation changes, the class’s clients should not have to change. Hiding the class’s implementation details makes it easier to change the class’s implementation while minimizing, and hopefully eliminating, changes to client code.
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: