List the special characteristics of constructor.
No Answer is Posted For this Question
Be the First to Post Answer
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.
When should we use container classes instead of arrays?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
What are the five types of inheritance in C++?
How would you implement a substr() function that extracts a sub string from a given string?
What are the differences between java and c++?
What is time h in c++?
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.
Is it possible to provide default values while overloading a binary operator?
What are the advantages of using friend classes?
What is this pointer in c++?
Define friend function.