Answer Posted / p.madhupriya
pointer is a variable that points to address of another variable
| Is This Answer Correct ? | 3 Yes | 0 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 do you use inheritance in unity?
What are the 4 main oop principles?
What is the purpose of enum?
What is class and object in oops?
What is polymorphism what are the different types of polymorphism?
What is inheritance in oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is the real life example of polymorphism?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
which feature are not hold visual basic of oop?
What is constructor overloading in oop?
What is encapsulation in simple terms?
when to use 'mutable' keyword and when to use 'const cast' in c++
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.