Which type does string inherit from?



Which type does string inherit from?..

Answer / Mohit Tripathi

In C++, the string class is a part of the Standard Template Library (STL) and does not directly inherit from any built-in types. However, it can be derived from the basic_string template class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is a friend function & its advantage?

2 Answers   TCS,


create a c++ program that will ask 10 numbers and display their sum using array.

1 Answers  


What is the purpose of enum?

1 Answers  


How to use CMutex, CSemaphore in VC++ MFC

1 Answers   Persistent, TCS,


Who invented oop?

1 Answers  


what is difference between String s=new String("vali"); String s="vali"

1 Answers  


what is polymorphism?

4 Answers  


What is a template?

7 Answers  


What is this interview room ? Is it a class or an object.

3 Answers   CybAge, NSN, Wipro,


The company is a fake company asking for money of RS10000 while training and not offering a job after training. My humble request to you people not to attend Astersys interview

1 Answers   Astersys,


Describe what an Interface is and how it?s different from a Class.

7 Answers   Spinsys,


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

1 Answers  


Categories