Explain the differences between public, protected, private
and internal.
Answer Posted / avinash
public means we can access the code or data in public that
is visible to others.
protected means the code or data can be within the system
and,or it has no access to it.and it is not available.
private means it can be accessesed only by the person who
has the access or key to it.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can you determine the size of an allocated portion of memory?
How can you tell whether two strings are the same?
Difference between strcpy() and memcpy() function?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
What does %c do in c?
What does the function toupper() do?
What is the use of function overloading in C?
What are the different types of C instructions?
Explain what is the difference between functions abs() and fabs()?
What is gets() function?
Explain the term printf() and scanf() used in c language?
What are structural members?
Explain what is the difference between a string and an array?
Why c is called free form language?