• Post Reply Bookmark Topic Watch Topic
  • New Topic

what is the real purpose of class  RSS feed

 
joseph dela cruz
Ranch Hand
Posts: 38
Chrome Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is the real purpose of class is to make use of object constructors? or i can hide my methods or at least put my methods there for the sake of Organized methods ill make classes but i wont make use of its constructors. i know i can put it there but is it a good practice?



if this is not a good practice can you teach me how to at least have an organized methods because whenever a professor asks us to make a program it sometimes tend to be so long and bulky
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess your question really is more about object-oriented design/programming than it is about classes in Java.
You may want to start by reading this Wikipedia article on object-oriented programming, especially the section called "Fundamental features and concepts".
That should point you to a closely related article on classes.

 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joseph,

Please see my private message to you regarding your post.

One of the best ways for you to learn is to practice, practice, practice. In order to practice, you need to read up on the basics. I have referred you to the Java Tutorials page before. Here is the link again: http://docs.oracle.com/javase/tutorial/java/concepts/ . It explains some of the basic concepts, including what a class is used for.

If your professor does not teach you how to organize your programs properly, then it is up to you to learn how good developers actually do it to make their lives and the lives of those who will eventually maintain their programs better. There are so many articles on the internet on good programming practices, I don't even know where to start. But they're out there if you SearchFirst. My advice is to search for articles by authors like Robert C. Martin, Joshua Bloch, Kent Beck, Martin Fowler, Alistair Cockburn, Craig Larman, Neal Ford, go out on http://www.InfoQ.com, and for something local there in the PH, find Orange & Bronze Software Labs on some of the popular social networks.
 
joseph dela cruz
Ranch Hand
Posts: 38
Chrome Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the reason why i did not look on that site is because i know the links give longer reads than tutorials point but anyway since you persist ill read it maybe its a good read after all
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
joseph dela cruz wrote:the reason why i did not look on that site is because i know the links give longer reads than tutorials point but anyway since you persist ill read it maybe its a good read after all

Please do. I tried Julinu's link and it was fine.

You might also want to look at the SearchFirst page here.

Winston
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!