Methods, Class, String, Object?? This week was honestly one of the more confusing weeks of Computer science. Learning about methods and classes have been relatively easy up to this point but now it is all beginning to get fuzzy and not exactly making sense. This week in CompSci we did a lab called Book in which we would create a program that would give an output of the title and ISBN number of a book. In this program, we needed to create default and initialization constructors to run the program. This got a little confusing to me because I don't exactly understand how these work. I understand that the default constructor is there so that we can assign those variables our own default value so that everything remains consistent with what we are trying to program. But writing code for initialization constructors got a little bit confusing and I didn't exactly understand how this fit into the large scheme of things. I know that since this is a very novel concept to me, it is going to get confusing and frustrating, but I'm very much looking forward to delving deeper into programming because I know we've only scratched the surface of the world of Java.
No comments:
Post a Comment