ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
Explain the differences between public, protected, private
and internal.
 Question Submitted By :: Semo
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Explain the differences between public, protected, private and internal.
Answer
# 1
public:-
---------        It means we can access the property of public;
directly  from out side of the class.

private:-
----------        it means we can't access the property of
private;
directly from out side the class.
        and we can't intilizing the member var during run time
we have to use constuctor.
proctected:- 
     If we wnat to inherit private data member only onces.
     then we make them protcted
 
Is This Answer Correct ?    5 Yes 5 No
Rahul_kumar007
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is the size of an integer variable?  1
What is the meaning When we write "#include" what is # and what does include does there??? HCL11
main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output?? Ramco13
Why doesn't C have nested functions?  2
How can we see the Expanded source code and compiled code for our source program in C?  1
How can I return multiple values from a function?  4
what is the difference between getch() and getchar()?  5
we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language????????????? Google2
how to generate the length of a string without using len funtion?  3
who is the founder of c HP9
What is sparse file?  1
#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}  3
what is the difference between c and java?  1
What is the difference between null pointer and the void pointer?  2
Why preprocessor should come before source code?  2
what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }  2
How we add our function in liabrary as liabrary function. Exp. we want use our int factorical(int); function as int pow(int,int); function working in math header file.  1
what are two categories of clint-server application development ?  1
two variables are added answer is stored on not for third variable how it is possible?  3
What is the diffrent between while and do while statement ?  5
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com