Welcome to another tutorial on the "How to code in Java" tutorial series. In the previous tutorial, we have gone through classes and objects. In this tutorial, we'll be continuing on what is a constructor and how we can utilise it in our code. This tutorial is the continuing of the previous tutorial, it'll be much easier to follow through this tutorial if you've read it. So I if you can't follow along in this tutorial, please have a read on the previous tutorial.
Showing posts with label methods. Show all posts
Showing posts with label methods. Show all posts
13 October 2020
29 September 2020
What methods are in Java? (A more in-depth tutorial)
Welcome to another tutorial on the "How to code in Java" tutorial series. In the last tutorial, we learned about how type-casting work and when to use them. In this tutorial, we'll be learning what methods are, how to use them and when to use them. Since everything in Java is represented in the form of objects, Java doesn't have "functions" like some other programming language. Instead, Java has only methods.
Subscribe to:
Posts (Atom)