What is encapsulation example?
No Answer is Posted For this Question
Be the First to Post Answer
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 polymorphism?
What is the difference between and interface and an abstract class ?
4 Answers IBM, Infosys, Ness Technologies,
What is new keyword in oops?
what is the use of mutable key word
In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance
The type of variable a pointer points to must be the part of pointer's definition so that:
What is difference between polymorphism and inheritance?
What is difference between #define and const?
What is the example of polymorphism?
Write a program to multiply 3x3 matrics
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile