Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
87 / 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.
Asked In ::
Dharmendra
23 Feb, 2019 5:07 AM
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.
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.