Day 10 – Learning Android Development

Today I finished the video tutorials on beginner java programming from TheNewBoston. I didn’t pay attention to videos 60-78 and the last 4 videos because they were about JFrame (GUI development) and I already have XML to worry about for android so there’s no point seeing this subject right now. Here’s an overview of what I saw today:

  • Overriding a method: Following from where I ended yesterday on polymorphism. Overriding a method is when you change an inherited method, but leave the same amount of arguments and return the same datatype.
  • Overloaded method: inherited method but with different amount of arguments as the super class’.
  • Abstract class: A class which is too abstract that it’s better not to create objects from it, it serves as a base for inheritance and polymorphism. Methods can be abstract too.
  • Polymorphic array:  make an array of objects, and loop through the objects while calling the same method: x.eat();  y.eat();  z.eat();  etc. and some may be overridden methods but you can still loop through them because they have the same name.
  • The File class: purpose is to keep data in a text file after a program closes so the data can be used once the program restarts again. checking if files exist, creating new files, adding data to files, read from files.
  • Exception handling: examples of try/catch in a loop.

The plan for tomorrow is to see all 36 java game development tutorials from him. It should be just review and learning syntax because I already know some of the basics of game development (2D) in python. After tomorrow, it’s back to android development on full speed!

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *