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


Please Help Members By Posting Answers For Below Questions

Explain the difference between structs and unions in c?

577


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

612


Tell me can the size of an array be declared at runtime?

599


What is difference between arrays and pointers?

584


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

906






How can I manipulate individual bits?

608


What is scanf_s in c?

634


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

635


What are pragmas and what are they good for?

578


What is use of bit field?

774


What the advantages of using Unions?

674


Is null a keyword in c?

737


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

651


please give me some tips for the placement in the TCS.

1634


What is s in c?

618