Itwas noted above that constructors generally have to be public so tha dịch - Itwas noted above that constructors generally have to be public so tha Việt làm thế nào để nói

Itwas noted above that constructors

Itwas noted above that constructors generally have to be public so that they are accessible to objects of a class. At first you may think that it doesn't matter whether a destructor is private or public -well, it does. Just as a constructor does, a class's destructor also
needs to be publicly accessible to an object. The following program code has declared Point's destructor as private, and a compilation error will be generated of the form 'class Point's destructor is not accessible to object p':
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Itwas noted above that constructors generally have to be public so that they are accessible to objects of a class. At first you may think that it doesn't matter whether a destructor is private or public -well, it does. Just as a constructor does, a class's destructor alsoneeds to be publicly accessible to an object. The following program code has declared Point's destructor as private, and a compilation error will be generated of the form 'class Point's destructor is not accessible to object p':
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Itwas đã nói ở trên rằng nhà xây dựng nói chung phải được công khai để họ có thể truy cập vào các đối tượng của một lớp. Lúc đầu, bạn có thể nghĩ rằng nó không quan trọng cho dù một destructor là -well tư nhân hoặc công cộng, nó. Cũng như một nhà xây dựng có, destructor của lớp cũng
cần phải được công khai tiếp cận với một đối tượng. Mã chương trình sau đây đã tuyên bố destructor Point như tư nhân, và một lỗi biên dịch sẽ được tạo ra trong những hình thức 'destructor lớp Point là không thể truy cập đến đối tượng p':
đ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: