How do I write a class with a method that will request a number from the user and output if it is even or odd and how do I write a class with a method that will request a year and report if it is a leap year.

With a text editor, I imagine.

Do you have a more specific question perhaps? Have any code as a starting point?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.