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


Please Help Members By Posting Answers For Below Questions

What is copy constructor? Can we make copy constructor private in c++?

840


What is the prototype of printf function?

914


Explain what are the sizes and ranges of the basic c++ data types?

921


Explain about vectors in c ++?

825


What is the use of lambda in c++?

807


What do you understand by zombie objects in c++?

858


What is the best c c++ compiler for windows?

808


Is it possible for the objects to read and write themselves?

913


Explain how we implement exception handling in c++?

827


Can manipulators fall in love?

788


Why is c++ considered difficult?

874


What is wrapper class in c++?

844


What does ctime() do?

836


Write a program to add three numbers in C++ utilizing classes.

891


What is the difference between *p++ and (*p)++ ?

1048