Kamis, 22 Desember 2016

How to allocate memory to objects in C++ Programming

Class is not allocated any memory. This is partially true. The functions in a class are allocated memory which are shared by all the objects of a class. Only the data in a class is allocated memory when an object is created. Every object has its own memory for data (variables). For example consider the following Student class and its functions: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 class Student { private: string name; string regdno; string

The post How to allocate memory to objects in C++ Programming appeared first on Coding Security.


How to allocate memory to objects in C++ Programming
read more

Tidak ada komentar:

Posting Komentar