Click here to Skip to main content
15,917,481 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

If i have a table in the database named customer and it has its attributes, should the class named customer have all of those attributes ? and can anyone tell me how to study oop design ?

Thank you.
Sergey Alexandrovich Kryukov 30-Jan-12 15:48pm    
For a note: there is nothing object-oriented in this question.

1 solution

No. You may or may not need it. It all depends on the goals of the application and the requirements.

The question "how to study" is too broad. Perhaps you can find the best answer in this most inspirational reading:
Peter Norvig, Teach Yourself Programming in Ten Years,[^].


This should explain why I say that there is nothing object-oriented in this question (please see my comment to the question): using the notion of "class" or this keyword along does not make programing object-oriented. Real OOP starts when late binding is introduced, not sooner.
Please see[^] — data abstraction, encapsulation, messaging, modularity, polymorphism, and inheritance are just the essential prerequisites.

Eastern proverb say:
Saying 'halva-halva' won't make your mouth sweet.

See also:[^],[^].

Share this answer

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