Hi everyone,
We've got some awesome contributions in our last coding challenge.
First of all, like promised my solution of the challenge:
https://pastebin.com/7QcxjVpu
But your contributions are at least as good!
But now, let's get to the point.
This next coding challenge is all about objects.
Objects?
Yes, Object-oriented programming has become one of the most successful programming paradigms because of the ease to map real-world problems to code.
Since you've shown in the previous challenge that you know your way around loops, switch-case, random numbers and reading or writing from and to the console, I feel we're ready for this.
The next coding challenges will build upon each other to have our first little project to show off to our friends, family, dogs or cats, so stay tuned.
You can show it to your goldfish as well (Please don't wake up your Hamster yet)
The task will be the following:
You will create one class called "Movie"
This class will have several variables:
Title (String), Overview(String), Genre (String[]), release-date(String) + any other info you would like.
After you created this class I want you to create several objects of this class
That means, you will create instances of your "Movie" filling the variables you previously defined.
In order to fill those movies let the user at the console define the number of movies he wants to create and then let him type the data in the console.
Following this you will store all those movies in a List/Set/Map/Array and print them out to console.
Hint: create a .toString method in your movie class
Don't feel down! Start coding!
If you have any questions or problems just write it into the comments so I can help you!