differentiate between private, public and protected data members of the class using example.



differentiate between private, public and protected data members of the class using example...

Answer / bhagyalakshmi

public is accessed through out the program
private is accessed with in the class only
protected is accessed like public only

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More STL Interview Questions

What is the STL?

2 Answers   Epson, HP,


Name the different types of stl containers.

0 Answers  


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

0 Answers  


What are stl algorithms?

0 Answers  


Waht is inheritance

6 Answers  






What are the components of stl?

0 Answers  


what is compiler?

4 Answers   NASA,


5. Write c++ function that would intake a string and return the number of occurrences of a given character in that sring Ex:- if the word is “Colombo” and count the occurrences of the letter “o” the function would return 3

1 Answers  


What is stl stand for?

0 Answers  


totoo po ba ang manga aliens!

0 Answers  


How the STL's are implemented, What the difference between templates and STL?

1 Answers   Symphony,


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.

0 Answers   GE, Infosys, Microsoft, NIM,


Categories