What is the difference between a type-specific template friend class and a general template friend class?



What is the difference between a type-specific template friend class and a general template friend c..

Answer / Piyush Kumar Singh

A type-specific template friend class is a friend class that has been declared as a template and is specific to a certain data type. A general template friend class, on the other hand, is a friend class that can operate across all data types. The template keyword is used for type-specific friend classes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

1 Answers  


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

1 Answers  


Describe new operator and delete operator?

1 Answers  


What are activex and ole?

1 Answers  


If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2.

1 Answers  


what is the C++

1 Answers   Wipro,


What is c++ and its uses?

1 Answers  


Can you write a function similar to printf()?

1 Answers  


what are the events occur in intr activated on interrupt vector table

1 Answers   HGS,


Is java as fast as c++?

1 Answers  


Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.

0 Answers   Maxobiz,


sir i want to study the c++ course but ino what is the qualification and the study methode please reply more details in c++

1 Answers   NIIT,


Categories