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 extern c++?

738


What apps are written in c++?

820


Which software is used for c++ programming?

838


Is swift better than c++?

738


How should a contructor handle a failure?

930


Explain deep copy?

816


What is switch case in c++ syntax?

855


What is c++ mutable?

904


Where and why do I have to put the "template" and "typename" keywords?

806


What is the purpose of extern storage specifier?

846


Are vectors passed by reference c++?

740


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3473


What are virtual constructors/destructors?

778


What is the full name of logo?

859


State the difference between pre and post increment/decrement operations.

843