is throwing exception from a constructor not a good practice ?
Answer Posted / saranya
yes, because constructor does not throws an exception
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
Define what is constructor?
How a new operator differs from the operator new?
What is c++ vb?
How to declare an array of pointers to integer?
Is c++ the hardest programming language?
What is the best way to declare and define global variables?
What is a pointer with example?
Differences between private, protected and public and give examples.
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
How can you specify a class in C++?
What does it mean to declare a member function as static?
Where do I find the current c or c++ standard documents?
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 is c++ code?
What are the various access specifiers in c++?