nope, im a complete java noob and am just looking to pass a class haha
Type: Posts; User: theoneyouenvy
nope, im a complete java noob and am just looking to pass a class haha
so it would be
public double calculateCharge()
{
return 0;
}
?
I guess how to code it, I have no clue how to do a void return.
So far I have
public double calculateCharge()
{
}
I have an assignment that asks me to write a class:
-------------------------
Computer
-------------------------
-brand:Brand
-price:Double
-quantity:Integer
Sorry I'm new to java, didn't realize I needed a set and get for that. All is well again, thanks again helloworld922 and JJeng.
This one works just fine
public class Brand
{
private String name;
private String city;
public Brand()
{