C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 16)
16.
Which of the following concepts means adding new components to a program as it runs?
Data hiding
Dynamic typing
Dynamic binding
Dynamic loading
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
23 comments Page 3 of 3.

Sree said:   7 years ago
Can anyone describe the function of dynamic loading?

Tripti said:   5 years ago
The compiler always execute the member function of base class first, the compiler doesn't know which classes objects address hold by pointer so the compiler unable to take the decision at compile time but at run time when function call executes, it takes decision according to the address stored in the pointer.

So the decision taken for calling any object through the appropriate class function at Run time is known as dynamic binding or late binding.

To making connections to a function call with the appropriate function is known as binding.
(3)

Purusoth said:   2 months ago
The concept that means adding new components to a program as it runs is called "dynamic loading".

Explanation: Dynamic loading allows a program to load libraries or modules into memory at runtime, essentially adding new functionality on demand, rather than having them compiled statically into the program from the start.

Key points about dynamic loading:

Flexibility:
It allows a program to adapt to changing requirements or load only the necessary components, improving performance and efficiency.

Runtime loading:
The process of loading new components happens while the program is already running.

Plugin architecture:
Dynamic loading is often used to implement plugin systems, where users can add new functionality to a base application by installing plugins.


Post your comments here:

Your comments will be displayed after verification.