Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛒 Generic Inventory Management System

This is a simple C# console application that demonstrates the use of generics, abstract classes, and interfaces in an inventory management context. The system supports adding, removing, and listing products from different categories such as electronic and food products.

📁 Project Structure

  • Models/

    • BaseProduct: Abstract base class with common properties (Id, Name, Price, Stock).
    • ElectronicProduct: Inherits from BaseProduct and represents electronic items.
    • FoodProduct: Inherits from BaseProduct and represents food items.
  • Services/

    • IInventoryService<T>: A generic interface defining common inventory operations.
    • InventoryService<T>: A generic class that implements IInventoryService for product management.
  • Program.cs

    • Demonstrates adding, removing, and displaying products.

🧪 Features

  • Add electronic and food products to a generic inventory
  • Remove products from inventory
  • List all products with details
  • Uses inheritance and generic constraints for clean and reusable code

✅ Technologies

  • Language: C#
  • Platform: .NET (Console Application)
  • Concepts Used:
    • Generics
    • Interfaces
    • Abstract Classes
    • Object-Oriented Programming (OOP)

📷 Example Output

About

A simple C# console application demonstrating a generic inventory management system using abstract classes and interfaces. Supports adding, removing, and listing electronic and food products through a generic service class.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages