What is a class template in c++?


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

Post New Answer

More C++ General Interview Questions

Can I learn c++ without knowing c?

0 Answers  


What are virtual constructors/destructors?

0 Answers  


Check for Balanced Parentheses using Stack?

1 Answers  


What are exceptions c++?

0 Answers  


How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

0 Answers  






class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData

2 Answers   Quark,


What is the full form of stl in c++?

0 Answers  


Difference between inline functions and macros?

0 Answers  


what are Access specifiers in C++ class? What are the types?

0 Answers  


What is the difference between the parameter to a template and the parameter to a function?

0 Answers  


What is meant by entry controlled loop? What all C++ loops are exit controlled?

0 Answers   TCS,


What is the use of turbo c++?

0 Answers  


Categories