recategorized
4,699 views
3 votes
3 votes

Which of the following differentiates between overloaded functions and overridden functions ? 

  1. Overloading is a dynamic or runtime binding and overridden is a static or compile time binding.
  2. Overloading is a static or compile time binding and overriding is dynamic or runtime binding. 
  3. Redefining a function in a friend class is called overloading, while redefining a function in a derived class is called as overridden function. 
  4. Redefining a function in a derived class is called function overloading, while redefining a function in a friend class is called function overriding.
recategorized

1 Answer

2 votes
2 votes

Method Overloading happens at compile time while Overriding happens at run time. In method overloading, method call to its definition has happens at compile time while in method overriding, method call to its definition happens at run time.

Hence,Option(B)Overloading is a static or compile time binding and overriding is dynamic or run time binding.

Reference:- http://net-informations.com/faq/oops/overloading.htm

Answer:

Related questions

3 votes
3 votes
2 answers
1
0 votes
0 votes
1 answer
2
0 votes
0 votes
1 answer
3
0 votes
0 votes
2 answers
4
makhdoom ghaya asked Jul 11, 2016
1,327 views
The syntax of capturing events method for document object isCaptureEvents() CaptureEvents(Orgs eventType)CaptureEvents(eventType)CaptureEvents(eventVal)