What do you mean by C++ access specifiers ?
Access specifiers define how the members (attributes and methods) of a class can be accessed. ... private - members cannot be accessed (or viewed) from outside the class. protected - members cannot be accessed from outside the class, however, they can be accessed in inherited classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can create new c++ operators?
Define virtual constructor.
this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }
what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?
What does namespace mean in c++?
Why c++ is not a pure oop language?
what Is DCS ? what i will get benefit when i did?
How do c++ struct differs from the c++ class?
What is std::move?
What information can an exception contain?
Is it possible to write a c++ template to check for a function's existence?
Can we define function inside main in c++?