user100DaysOfCode
CommunityDevTermsResources|Login

Loading

Java Roadmap

Day 25: Simple Class

Create a basic class with attributes and methods.

  • Create a User class with the following fields: id (int), firstname, lastname, email, city, country
  • Add a constructor to initialise an User object
  • Implement getters and setters to access User values
  • Implement a getFullname() method to get fullname (i.e firstname + lastname) of the user
<Prev|Next>

Learning Resources |View Complete Plan

Looking for puzzle challenges?

Double Take

One answer, two meanings

Equation Dash

Hit the target using given numbers

Levenshtein

Find the secret word using edit distance clues

Daily Puzzles App

15+ word & logic games. Build your daily streak!

App Store

      Sponsor Us|Community|Blog|Youtube|DLPCareersContact UsDisclaimerPrivacy PolicyTerms of Service
      Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
      100DaysOfCode@2024