Question discussion

Which OOP mechanism allows a single function name to behave differently depending on the number or types of arguments passed to it?

362Medium DSSSB TGT Computer Science 0 replies
Which OOP mechanism allows a single function name to behave differently depending on the number or types of arguments passed to it?
  • AEncapsulation
  • BFunction overloading (compile-time polymorphism)
  • CInheritance
  • DAbstraction
Correct answer: B

Discussion 0

Nobody has replied yet. Start the discussion!