Skip to main content

iI need to create a method with a default constructor, which sets NAMEname to an empty string and sets both CREDITScredits and CONTACT HOURScontactHours to zero. how How to do it? thanks Thanks, Pieter.

i need to create a method with a default constructor which sets NAME to an empty string and sets both CREDITS and CONTACT HOURS to zero. how to do? thanks Pieter.

I need to create a method with a default constructor, which sets name to an empty string and sets both credits and contactHours to zero. How to do it? Thanks, Pieter.

Source Link
Pieter
  • 29
  • 1
  • 1
  • 2

Create a default constructor in Java

i need to create a method with a default constructor which sets NAME to an empty string and sets both CREDITS and CONTACT HOURS to zero. how to do? thanks Pieter.