Polymorphism allows a 9L0-509 single name to be reused for several related but different purposes. The purpose of polymorphism is to allow one name to be used for a general class. Depending on the type of data, a specific instance of the general case is executed.
The concept of polymorphism is wider. Polymorphism exists every time we use two functions that 9L0-402 Braindump have the same name, but differ in the implementation. They may also differ in their interface, e.g., by taking different arguments. In that case the choice of which function to make is via overload resolution, and is performed at compile time, so we refer to static polymorphism.
Dynamic polymorphism 9L0-402 will be covered deeply in the where we will address its use on redefining the method in the derived class.
Typing refers to how a computer language handles its variables. As we will see in depth later, variables are values that the program uses during execution. These values can change; they are variable, hence their name. Static typing usually results in compiled code 9L0-509 Questions optimizations. Since the compiler knows the exact types that are in use, it can produce machine code that is optimized for a limited set of types. In C++, variables need to be defined before they are used so that compilers know what type they are.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment