B
Bryan Parkoff
The C Compiler uses procedure function. It allows the programmers to
define global variables and global functions. They attempt to test using
debuging tools and often bugs are harder to find. If you use namespace, it
would be helpful to isolate global variables and global functions in the
right group.
The C++ Compiler allows local variables and local functions to be bound
inside struct or class. It makes easier to define one object as class so
all variables and functions can be manipulated inside class.
The problem is that this object has a pointer. You define class inside
main() function. You decide to execute an object. The pointer is placed in
the register and then pointer gives the memory address to locate variables
and functions. The procedure function does not need to have pointer.
Without pointer, it improves performance.
Can you please explain? Why do you prefer to design your project by
focusing to isolate variables and functions inside object as class? Why
can't namespace be used? Procedure Functions and OOP allow to be reuseable
if you want to run more than one object at the same time.
define global variables and global functions. They attempt to test using
debuging tools and often bugs are harder to find. If you use namespace, it
would be helpful to isolate global variables and global functions in the
right group.
The C++ Compiler allows local variables and local functions to be bound
inside struct or class. It makes easier to define one object as class so
all variables and functions can be manipulated inside class.
The problem is that this object has a pointer. You define class inside
main() function. You decide to execute an object. The pointer is placed in
the register and then pointer gives the memory address to locate variables
and functions. The procedure function does not need to have pointer.
Without pointer, it improves performance.
Can you please explain? Why do you prefer to design your project by
focusing to isolate variables and functions inside object as class? Why
can't namespace be used? Procedure Functions and OOP allow to be reuseable
if you want to run more than one object at the same time.