• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to persist when all you have is an interface <<Car>> ?

 
Adrian Burlington
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I have an application that parse some data. The data is a list of cars (interface). <<Car>>
Question: say I have a list of cars how can I persist them? I mean it's an interface and it's implementation comes from ABCCar or DEFECar

Again, at the end of the parsing-process, I have a list of cars and I wish to persist them all.

Thanks for any input / example.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!