Click here to Skip to main content
15,887,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi everyone
i want to write a program in a Console at c# with classes and then inheritance over that class and at the end save information in file .
in fact , i want to Write a Phonebook(ID,Name,Tel,Email,Address) with classes and Binary files (4 Direct access)
but exactly I don't know how to write this program.
please help me.
thanks alot
Posted
Comments
joshrduncan2012 19-Oct-12 17:27pm    
Have you tried researching some material on your own? We will not do the work for you. If you are stuck at a point somewhere, then we can help you if you show us your code.

1 solution

1) Break down the things you want to save into logical blocks. (Not code, just how you could look at them in real life).
2) Create your project in Visual Studio.
3) Take those broken down concepts and design simple classes to wrap the data you need for them. Use inheritance where applicable.
3) Get the user input from the UI and apply the data values to instances of your classes.
4) Serialize those objects to a file.
5) When you have issues in your code or run into issues while writing, ask about those specifically and we'll be glad to provide assistance, but we won't write it for you.

Cheers and good luck.
 
Share this answer
 
v2
Comments
Nelek 19-Oct-12 18:32pm    
Nice answer. +5
fjdiewornncalwe 19-Oct-12 19:14pm    
Thanks, Nelek
Sushil Mate 19-Oct-12 22:48pm    
Nice one.. i guess he ll come with another question like how to serialize objects ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900