How do you initialize a class member,
class x {
const int i;
};
Answer Posted / guest
x()
{i=10;
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Define copy constructor.
What is the use of this pointer in c++?
Why can templates only be implemented in the header file?
What is a loop? What are different types of loops in c++?
Is there a c++ certification?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What programming language should I learn first?
What is c++ hiding?
What is name hiding in c++?
What is split a string in c++?
What is the advantage of c++ over c?
How can you tell what shell you are running on unix system?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
What parameter does the constructor to an ofstream object take?
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side