Answer Posted / rafiuddin
static functions can be called with out the class object
also. we can call static functions with scope resulation
operator.
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
when to use 'mutable' keyword and when to use 'const cast' in c++
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 encapsulation c#?
Why is polymorphism needed?
How do you achieve polymorphism?
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
What are the benefits of interface?
What is encapsulation selenium?
what are the realtime excercises in C++?
What is interface in oop?
What is abstraction with example?
What is class in oop with example?
can we make game by using c
What is abstraction in oop with example?