We can also use constructor to allocate memory while creating objects. This will enable the system to allocate the right amount of memory for each object, thus resulting in the saving of memory. Allocation of memory to object at the time of their construction is known as dynamic construction of objects.
Java
Topic: Constructors
What is Dynamic constructor ?
Browse random answers:
What is the difference between a constructor and a method?
Why constructor does not have return type in java?
Where and how can you use a private constructor?
What are Characteristics of constructor:?
What is Parameterized constructor?
What is copy constructor?
What is Default constructor ?
What is Dynamic constructor ?
How should a contructor handle a failure?
What is virtual constructors/destructors?