[Solved] SOLVED: Geek.java

30 $

File Name: SOLVED:_Geek.java.zip
File Size: 160.14 KB

SKU: [Solved] SOLVED: Geek.java Category: Tag:

Or Upload Your Assignment Here:


Geek.java

Write a class definition (not a program, there is no main method) named Geek (saved in a file Geek.java) that models a person who is a geek. For our purposes, a geek is someone who delights in answering all sorts of questions, such as “is this year a leap year?”, “what is the sum of all numbers between two numbers?”, “what is a prime number?”, among other things. A Geek has a name and also keeps track of how many questions s/he has answered.Your Geek class must have only two instance variables – the Geek’s name and number ofWhat This Assignment Is About:• Loops• Control flow• Implementing classesMethods Description of the methodspublic Geek (String name)the Geek’s name, the number of questions isassigned to zero.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] SOLVED: Geek.java
30 $