Java中的对象序列化 [英] Object Serialization in java

查看:101
本文介绍了Java中的对象序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个关于ATM刺激的Java项目,我已经做完了所有部分,我的问题是我无法将客户和帐户的对象存储到二进制文件中

设计是这样的:银行有0到许多客户,每个客户有1到许多账户,我将对象存储在Vector中,我想给我一个读/写方法的样本

感谢您对我的问题的帮助

最好的问候

Hi
I have a project in Java Regarding ATM stimulation ,I have done all the parts, my problm is that I could not Store the Object of Customer and Account into the Binary file

The Design is Like this :bank has zero to Many Customer and each Customer has 1 to many Accounts ,I store My Objects in Vector,I am asking to give me a sample of Read/Write Methods

I appreciate your help regarding my Question

Best Regards

推荐答案

很多建议
Lots of suggestions here[^]; pick one that suits your requirements.


您不需要为此进行序列化.

这是面向对象设计的经典作业.
因此,请尝试自己做作业.如果您需要帮助,我们会为您提供帮助-但我们没有提供完整的解决方案.
you don''t need serialization for this.

This is a classic homework for object oriented design.
So please try to do the homework by yourself. We will help you if you need some help - but we do not provide complete solutions.


这篇关于Java中的对象序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆