How to construct virtual constructor
Answer Posted / richa
Constructors can't be virtual in C++.It is an error.The
destructors on the other hand can be virtual.
Is This Answer Correct ? | 29 Yes | 4 No |
Post New Answer View All Answers
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Explain rethrowing exceptions with an example?
What is a memory leak c++?
Why do we use setw in c++?
Explain the operation of overloading of an assignment operator.
What is low level language in simple words?
Write a C++ Program to check whether a number is prime number or not?
What is polymorphism in c++? Explain with an example?
Can I learn c++ without c?
Why do we use structure in c++?
Write a recursive program to calculate factorial in c++.
Write a program in C++ for Fibonacci series
What is a tree in c++?
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
Comment on local and global scope of a variable.