What data encapsulation is in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

template<class T, class X> class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; }

1 Answers   Quark,


Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?

0 Answers  


difference between the c++ and c languages

4 Answers   Wipro,


Can a program run without main function?

0 Answers  


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

0 Answers  


What is the function of the keyword ‘volatile’ in C++?

1 Answers  


Why c++ is called oop?

0 Answers  


What is polymorphism in c++? Explain with an example?

0 Answers  


Describe linked list using C++ with an example.

0 Answers  


Does there exist any other function which can be used to convert an integer or a float to a string?

0 Answers  


How many lines of code you have written for a single program?

4 Answers   BoA,


What is the best c c++ compiler for windows?

0 Answers  


Categories