Portfolio Display: View the details of all assets and liabilities in the mutual fund.
Total Value Calculation: Calculate and display the total value of the mutual fund.
Sorting: Sort the portfolio based on the current value of the financial entities.
Entity Search: Search for specific financial entities by name within the portfolio.
Represents a general financial entity with attributes like name and current value. Contains pure virtual functions for displaying details (showDetails) and getting the current value.
Represents an asset in the portfolio. Overrides showDetails to display asset-specific information.
Represents a liability in the portfolio. Overrides showDetails to display liability-specific information.
Manages a collection of financial entities (assets and liabilities). Provides functionalities to add entities, display the portfolio, calculate total value, sort entities by value, and search for entities by name.