what is data encapsulation in C++?
No Answer is Posted For this Question
Be the First to Post Answer
What is size of a object of following class? class Foo { public: void foo(){} }
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
In java a final class is a class that cannot be derived. How can you make a similar class in C++
CAN U SAY WHICH PROGRAMING LANGUAGE IS USED BY DOCTORS....?
What are the basics of local (auto) objects?
What is the hardest coding language to learn?
Define the process of error-handling in case of constructor failure?
Why is polymorphism useful?
What is the iunknown interface?
What are raw sockets, where they are efficient?
What is null and void pointer?
Write my own zero-argument manipulator that should work same as hex?