DEV Community

Liam Gomez
Liam Gomez

Posted on • Edited on

Day 13/100 Java

Another Productive Day,

Day 13/100

Language:
JAVA

Time Period Spent:
2hrs

Course Taken:
Udemy: Java Programming Masterclass - Tim Buchalka

Todays Learning:
- Constructors
- Overloading
- Initialising Constructors
- Setting Default Values

- Code Challenges
    - Wall Area
    - Point
    - Carpet Cost
    - Complex Operations
Enter fullscreen mode Exit fullscreen mode

Additional Notes:
The special use case of a constructor is to initialise the instance of the class. This meaning that we can initialise the values from one instance of the code instead of having to use the setters of a class. All we need to do is introduce the values and then manipulate the data accordingly, depending on what the class is used for.

Identically to methods, constructors also have an override facility. We can also set default values in the constructor without needed to parse any data into the constructor.

Top comments (0)