Write with an example how will you dynamically initialize object?
Answers
Answered by
2
Answer:
Dynamic initialization of object refers to initializing the objects at run time i.e. the initial value of an object is to be provided during run time. Dynamic initialization can be achieved using constructors and passing parameters values to the constructors.
Similar questions