How do you establish a has-a relationship?


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

Post New Answer

More C++ General Interview Questions

What is the use of volatile keyword in c++? Give an example.

1 Answers  


You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so

1 Answers  


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

0 Answers  


What is the difference between the compiler and the preprocessor?

0 Answers  


What is a constructor initializer list and when we use constructor initializer list?

3 Answers   Soft Info, TCS,






Explain the concept of dynamic allocation of memory?

0 Answers  


Why is main function important?

0 Answers  


sizeof- is it functioning statically or dynamically?

2 Answers  


What is :: operator in c++?

0 Answers  


What is enum c++?

0 Answers  


What is the difference between structure and class?

0 Answers  


Describe private, protected and public – the differences and give examples.

0 Answers  


Categories