Що таке ДЕСТРУКТОР Англійською - Англійська переклад

Іменник

Приклади вживання Деструктор Українська мовою та їх переклад на Англійською

{-}
  • Colloquial category close
  • Ecclesiastic category close
  • Computer category close
Навіщо потрібні деструктори.
Why do you need destroyers?
Конструктор і деструктор класу в C++.
The class constructor and destructor in C++.
Газовий ящик імпульсного деструктора.
Gas box pulse deduster.
Деструктор- це протилежність конструктору.
A destructor is the reverse of a constructor.
І може викликатись деструктор.
And maybe call an exterminator.
В PHP 5, метод деструктор називається"__destruct".
In PHP 5, the destructor method is named__destruct.
Магічні методи: конструктор і деструктор.
Magic methods: constructor and destructor.
В Objective-C, метод деструктор називається"dealloc".
Objective-C: the destructor method have name dealloc.
Припустимо визначені конструктор і деструктор класу.
Let determined constructor and destructor.
В Objective-C, метод деструктор називається"dealloc".
In Objective-C, the destructor method is named dealloc.
Пневматичний електромагнітний клапан імпульсного деструктора.
Pneumatic electromagnetic valve of pulse deduster.
Ім'я деструктора має збігатися з іменем конструктора, але йому передує сим-.
Destructor has the same name as the constructor and it is preceded by.
Якщо у конструкторах замовлялася пам'ять, то деструктор має її звільнити.
If a constructor allocates memory, the destructor for that class must free it.
Наприклад, ендокринні деструктори спричинили зміни у рибах та амфібіях.
Endocrine disruptors, for example, have induced sex changes in fish and amphibians.".
Деструктор має те саме ім'я, що і клас, але зі знаком тильда(~), що вказаний перед ним.
The destructor has the same name as the class, but with a tilde(~) before it.
Обробка винятків«exceptions» у Java відрізняється, оскільки деструктори відсутні.
Exception handling in Java is different because there are no destructors.
В цій ситуації, якби деструктор звільняв пам'ять- в програмі виникла б помилка.
In this situation, If the destructor frees the memory- to an error occurred in the program.
Деструктор, це є метод який викликається для гарантованого звільнення пам'яті під об'єкт.
Destructor is the method which is called for guarantee freeing memory for the object.
У 3-му блоці конструктор копіювання не викликається,відповідно і 2-го деструктора немає.
In the 3rd block copy constructor is not invoked,respectively and 2nd no destructor.
При її видаленні обов'язково спрацює певний деструктор і звільнить ту пам'ять, що зайнята об'єктом-оригіналом.
At its removal is required to work a specific and destructor frees the memory, that is occupied by the original object.
Нам відмінно буде видно скільки разів спрацюють конструктори аскільки разів деструктор.
We will be perfectly seen how many times andhow many designers will work again destructor.
Локальність, забезпечується завдяки написанню конструктора і деструктора у визначенні класу поруч один із одним.
Finally, locality of definition is provided by writing the constructor and destructor definitions next to each other in the class definition.
Буде створено клас, містить конструктор без параметрів,конструктор копіювання і деструктор.
The class will be created, containing no-argument constructor,copy constructor and destructor.
Створений тимчасовий об'єкт, відразу ж після цього руйнується(якби у нього був описаний деструктор, то він би викликався в цій точці);
Established temporary object, immediately thereafter destroyed(if he has been described destructor, it would have been called at this point);
Якщо виник виняток у конструкторі об'єкта, то сам об'єкт не буде створеним,і немає необхідності викликати для нього деструктор.
If constructor throws exception, then object won't be created,and there's no need to call destructor for it.
Щоб приклад був не надто громіздким, конструктори і деструктор будуть виводити на екран повідомлення типу“спрацював конструктор”,“спрацював дектруктор”….
For example it was not too bulky, The constructor and destructor will display the message type“Triggering designer”,“Triggering dektruktor”….
Деструктор для обох об'єктів: lock і file гарантовано буде викликаний при поверненні управління із функції, не залежно від того сталася виняткова ситуація(exception) чи ні.[3].
The destructors of both the lock and file objects are therefore guaranteed to be called when returning from the function, whether an exception has been thrown or not.[9].
Якщо ж ми закомментіруем/*конструктор копіювання*/ в класі і знову запустимо програму- увидим,що конструктор без параметрів спрацює 2 рази, а деструктор- п'ять разів відпрацює.
If we comment out/*copy constructor*/ in the classroom and run the program again- see,that the constructor without parameters work 2 fold, and destructor- It runs for five times.
Користувачевий конструктор копіювання здебільшого потрібен коли об'єкт має вказівники або неспільні посилання, такі як файл,в цьому випадку деструктор і оператор присвоювання також мають бути написані(дивись Правило трьох).
A user-defined copy constructor is generally needed when an object owns pointers or non-shareable references, such as to a file,in which case a destructor and an assignment operator should also be written(see Rule of three).
Він викликається, коли екземпляр знищується, наприклад, коли об'єкт класу створюється у блоці(фігурні дужки"{}")він видаляється після закриваючої дужки, то деструктор викликається автоматично. Деструктори використовуютьчя для звільнення пам'яті у купі, коли екземпляр знищується.
It is called when an instance of a class is destroyed, e.g. when an object of a class created in a block(set of curly braces"{}") is deleted after the closing brace, then the destructor is called automatically. It will be called upon emptying of the memory location storing the variables. Destructors can be used to release resources, such as heap-allocated memory and opened files when an instance of that class is destroyed.
Результати: 38, Час: 0.0165

Найпопулярніші словникові запити

Українська - Англійська