Explain the differences between public, protected, private
and internal.
Answer Posted / rahul_kumar007
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 ? | 10 Yes | 11 No |
Post New Answer View All Answers
difference between object file and executable file
When should a type cast be used?
What are the features of the c language?
explain what is fifo?
What is a pointer and how it is initialized?
What is the difference between #include and #include 'file' ?
What is .obj file in c?
about c language
What is c standard library?
Write a program to check whether a number is prime or not using c?
Is python a c language?
What does c mean in basketball?
What does void main return?
Explain how do you use a pointer to a function?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software