C++ Programming - OOPS Concepts - Discussion

Discussion :: OOPS Concepts - General Questions (Q.No.16)

16. 

Which of the following concepts means adding new components to a program as it runs?

[A]. Data hiding
[B]. Dynamic typing
[C]. Dynamic binding
[D]. Dynamic loading

Answer: Option D

Explanation:

No answer description available for this question.

Rekha said: (May 25, 2012)  
Can any one explain what is dynamic loading?

Dimpu said: (May 31, 2012)  
Can anyone clearly explain dynamic loading?

Durgadevi said: (Jun 29, 2012)  
Dynamic means multiple so we want to insert any external components inside the program just we use this concept.

Harshita Nigam said: (Jul 3, 2012)  
Can any one explain How can we use concept of dynamic loading ?

San said: (Jul 5, 2012)  
Dynamic loading is a mechanism by which a computer program can, at run time, load a library (or other binary) into memory, retrieve the addresses of functions and variables contained in the library, execute those functions or access those variables, and unload the library from memory.

Niks said: (Aug 15, 2012)  
Why not dynamic binding ? what's the difference between the two ?

Ankita said: (Sep 22, 2012)  
Difference between dynamic binding and dynamic loading?

Ash said: (Sep 29, 2012)  
Can someone provide a programming example with dynamic loading?

Pavan Kumar said: (Mar 6, 2013)  
In OOPs Dynamic Binding refers to linking a procedure call to the code that will be executed only at run time. The code associated with the procedure in not known until the program is executed, which is also known as late binding.

Dynamic loading is a mechanism by which a computer program can, at run time, load a library (or other binary) into memory, retrieve the addresses of functions and variables contained in the library, execute those functions or access those variables, and unload the library from memory. Unlike static linking and loadtime linking, this mechanism allows a computer program to startup in the absence of these libraries, to discover available libraries, and to potentially gain additional functionality.

Lillo said: (May 31, 2013)  
Dynamic doesn't mean "multiple", it comes from Greek(movement).

It's something done during the program is "moving", while it's working, running.

Duude Avinash(Lpu) said: (Sep 7, 2013)  
Provide separate programme on dynamic loading and dynamic binding.

Ashok said: (Sep 16, 2013)  
class shape { public:
void draw();
};
class circle : public shape { };
int main(int argc, char **argv){
circle my_circle;
my_circle.draw();
}

While this has all the usual advantages, e.g., code reuse, the real power of polymorphism comes into play when draw is declared to be virtual or pure virtual, as follows:

class shape{ public:
virtual void draw()=0;
};
class circle : public shape { public:
void draw();
}

Here, circle has declared its own draw function, which can define behavior appropriate for a circle. Similarly, we could define other classes derived from shape, which provide their own versions of draw.

Now, because all the classes implement the shape interface, we can create collections of objects that can provide different behavior invoked in a consistent manner (calling the draw member function). An example of this is shown here.

shape *shape_list[3]; // the array that will
// pointer to our shape objects
shape[0] = new circle; // three types of shapes
shape[1] = new square; // we have defined
shape[2] = new triangle;
for(int i = 0; i < 3; i++){
shape_list[i].draw();
}

Suvarna said: (Jan 17, 2014)  
Can anyone explain dynamic loading?

Vinuth said: (Jun 19, 2014)  
Dynamic doesn't mean "multiple",

Dynamic means multiple so we want to insert any external components inside the program just we use this concept.

Diya said: (Jul 26, 2014)  
Dynamic means "which keeps on changing".

The changes that are made to the class object when the program runs at run time or dynamic time when its values keeps on changing as per the user's input is called dynamic loading.

Maulana Azad said: (Oct 11, 2014)  
Loding means carrying heavy things. Binding means tying loded things.

Msiri Kisenga said: (Sep 26, 2015)  
I think the answer should be the dynamic biding because the new component is added at run time.

Dynamic loading the new component will be added at compiler time.

Rajasekhar said: (Feb 9, 2016)  
Can anyone explain what is dynamic typing?

Tani said: (Sep 2, 2016)  
How this concept is valid in OOPs. Can anyone explain?

Sumit said: (Dec 14, 2016)  
What is an instance variable? Any can explain it.

Sree said: (Jul 23, 2018)  
Can anyone describe the function of dynamic loading?

Tripti said: (Mar 14, 2020)  
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.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.