Журнал «Современная Наука»

Russian (CIS)English (United Kingdom)
MOSCOW +7(495)-142-86-81

Features of using virtual functions in object-oriented programs

Novikov Pavel Vladimirovich  (PhD (candidate of Engineering Science), associate Professor, Moscow Aviation Institute (national research University))

The paper discusses the features of using virtual functions in object-orient programs that a common for different programming languages. Techniques of reducing the source code based on the use of virtual functions overridden in the сlass inheritance hierarchy were proposed. The situations with virtual functions were studied, when it is possible both to increase of machine time consumptions and to reduce these consumptions.

Keywords:virtual functions, override of methods, сlass inheritance hierarchy, polymorphic objects, static methods

 

Read the full article …



Citation link:
Novikov P. V. Features of using virtual functions in object-oriented programs // Современная наука: актуальные проблемы теории и практики. Серия: Естественные и Технические Науки. -2021. -№10. -С. 96-102 DOI 10.37882/2223-2966.2021.10.16
LEGAL INFORMATION:
Reproduction of materials is permitted only for non-commercial purposes with reference to the original publication. Protected by the laws of the Russian Federation. Any violations of the law are prosecuted.
© ООО "Научные технологии"