
I hope everyone was able to get through Part A without any trouble. Of course, as I mentioned before, what we just went through and created won’t do anything yet. That is where Part B comes in. Don’t worry it won’t be as intense as part A was.
First things first though. We want to select the Store.java file now, since we are done working inside the book.java file. Now we can take a look at our code:
package books;

See I told you. Much less here to worry about. What you see here is that we are obviously still working inside package books.
The first change you notice is the public class Store { line. If you look and think about this it will make sense. We changed to the Store.java file. So now our class is Store
These are our two new lines.
The first word book links this back to public book(String iniAuthor, int iniYearOfPublication, String iniName ){ which is in our book.java file. The second word book1 tells the system that this is the first book for the application to reference. This is also called the object.
The second line book1.printValue() tells the application to print the defined values how we have defined them in the book.java file.

We have now created a JAVA application that referenced an object to give our information.
As always I made a few modifications to help myself learn. Here is my book.java code



I located a Youtube video that demonstrates and explains this pretty well. It uses a different example but the same principles. Feel free to use the example in the video also. It will help get the association down. As I can’t use my actual training videos for everyone, I will try and locate something on Youtube that will help you see a visual explanation. That is how I learn best. I will also include them at the end of a segment so everyone has a chance to do it on their own.
Here’s a great video though of what Classes and Objects are and how they are used.







Man thanks for the tutorials, I check the website all the time to see what is next :]
Thanks for all the help!
Thanks for all the help!