Answer Posted / priyanka kokil
I want to modify the above answer. A constructor cannot be
virtual because at the time when the constructor is invoked
the virtual table would not be available in the memory.
Hence we cannot have a virtual constructor. But we can have
virtual destructor which is defined in Answer #2
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
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
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
Show the declaration for a static function pointer.
Why c++ is better than c language?
What is ios :: in in c++?
Define a nested class.
Will rust take over c++?
What are the 2 main types of data structures?
What does new return if there is insufficient memory to make your new object?
Describe the advantages of operator overloading?
What c++ is used for?
Is rust better than c++?
Write about the use of the virtual destructor?
What is the average salary of a c++ programmer?
Does c++ have string data type?