Answer Posted / nutan
pls refer
http://objectmix.com/c/34028-difference-between-new-operator-new.html
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
How to improve object oriented design skills?
write a program to find 2^n+1 ?
Can main method override?
What is inheritance write a program to show use of inheritance?
Can an interface inherit a class?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is pure oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
c++ program to swap the objects of two different classes
Whats is abstraction in oops?
What is oops?what is its use in software engineering?
• What are the desirable attributes for memory managment?
class type to basic type conversion
What is inheritance in oop?