T
Tony Johansson
Hello Experts!!
I have an easy question when you allocate memory by using new you allocate
memory dynamically but what is it called
when you allocate memory without using new.
Here is an example of allocating memory dynamically. You instansiate object
obj of class Test. The class is called Test
Test obj = new Test();
Here is an example of allocating memory without using new. You instansiate
object obj of class Test. The class is called Test.
You know you can allocate memory in different scope.(local(block),
file(global), function or class)
Test obj;
Many thanks!!
//Tony
I have an easy question when you allocate memory by using new you allocate
memory dynamically but what is it called
when you allocate memory without using new.
Here is an example of allocating memory dynamically. You instansiate object
obj of class Test. The class is called Test
Test obj = new Test();
Here is an example of allocating memory without using new. You instansiate
object obj of class Test. The class is called Test.
You know you can allocate memory in different scope.(local(block),
file(global), function or class)
Test obj;
Many thanks!!
//Tony