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

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

Increase of the amount of RAM used by class inheritance in object-oriented programming

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

The paper deals with the way to investigate by library function ‘system’ the amount of RAM used in Borland C++. The research shows that the accuracy of functioning ‘system’ is 1 Kb. Experimentally shown that the addition of classes in inheritance hierarchy increases the amount of RAM used. There is also the established coincidence of the research results given in the paper with the results of the other researches in Microsoft Visual Studio 98 based on analysis of physical addresses of the objects’ components. The impossibility of reducing the researched amount of RAM used by overriding methods, by virtual methods and by using private access to the components of classes is under discussion in the paper.

Keywords:Class inheritance, amount of RAM used, inheritance hierarchy, override, virtual, private access

 

Read the full article …



Citation link:
Novikov P. V. Increase of the amount of RAM used by class inheritance in object-oriented programming // Современная наука: актуальные проблемы теории и практики. Серия: Естественные и Технические Науки. -2018. -№06. -С. 116-122
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.
© ООО "Научные технологии"