How do you initialize a class member,
class x {
const int i;
};
Answer Posted / pappu
class abc
{
int a=4,b=3;
virtual mul(int int)=0;
}
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What is general form of pure virtual function? Explain?
Difference between a homogeneous and a heterogeneous container
How does class accomplish data hiding in c++?
Define pre-condition and post-condition to a member function in c++?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
Can you pass an array to a function in c++?
Can static member variables be private?
Do you know about C++ 11 standard?
What is class in c++ with example?
Explain storage qualifiers in c++.
What are namespaces in c++?
Explain method of creating object in C++ ?
Difference between a copy constructor and an assignment operator.
Differentiate between a constructor and a destructor in c++.
Can we use this pointer in a class specific, operator-overloading function for new operator?