Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How does operator overloading differ from using a generic package?

For my Data Structures exam.

We use Ada.

Thanks!

1 Answer

Relevance
  • 9 years ago
    Favorite Answer

    A generic unit is a subprogram or package that defines algorithms in terms of types and operations that are not defined until the user instantiates them.

    When you do the operator overloading you just use that method that you defined that overload the operator and don't need to create an instance of an object

    Source(s): Software Developer
Still have questions? Get your answers by asking now.