click below
click below
Normal Size Small Size show me how
essay
Theory of programming
| Question | Answer |
|---|---|
| What is the difference between coercion, polymorphism and overloading | Overloading- a name having more than one object at any point in a program. Coercion-when a compiler converts one type into value of another when required by surrounding context. Polymorphism allows a single subroutine to accept argument of multiple types. |
| What is difference between declaration and definition? | Declaration introduces name and indicates scope. Definition describes object in detail for compiler to determine implementation. |
| What do we mean by scope of a name to object binding? | the scope of a name to object binding refers to the area of a program that the name of the object doesn't change. |
| What is difference between static and dynamic scoping? | Static scoping is defined by the syntax of the program and dynamic scoping relies on the current state of program execution. |