Forums Java Help Whats the difference between constructors and normal methods

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15242
    juwanine
    Participant

    What’s the difference between constructors and normal methods?

    #15245
    ahprofessional
    Participant

    Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times and it can return a value or can be void.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.