Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
27 / 187
How to initialize object dynamically?
Answer:
Class objects can be initialized dynamically too. That is, the initial value of an object may; be provided during run time.
Advantages:
We can provide various initialization formats, using overloaded constructor. This provides the flexibility of using different format of data at run time depending upon the situation.