need a complete code for a car class with the following attributes;
make
model
colour
registration
no of seats
wheel type (alloy or hubbed)
engine size (in cc)

need a complete code for a car class with the following attributes;

Have you asked Google? You have a better chance of getting it there than here.

Member Avatar for ztini

psh, come at me bro:

package i.r.teh;
import java.util.*;
class car {
Map<String,String>args
=new HashMap<String,String>();
void addargs(String arg, String Arg)
{args=new HashMap<String,String>();args.put(arg,Arg);}
String gimmeargs(String arg)
{args=new HashMap<String,String>();return args.get(arg);}
public String toString()
{return "I make go do fast";}
public static void main(String[] args)
{i.r.teh.car c = new i.r.teh.car();c.addargs("make","rawr"); // etc
}
}

You can thank me for the A later...

psh, come at me bro:

package i.r.teh;
import java.util.*;
class car {
Map<String,String>args
=new HashMap<String,String>();
void addargs(String arg, String Arg)
{args=new HashMap<String,String>();args.put(arg,Arg);}
String gimmeargs(String arg)
{args=new HashMap<String,String>();return args.get(arg);}
public String toString()
{return "I make go do fast";}
public static void main(String[] args)
{i.r.teh.car c = new i.r.teh.car();c.addargs("make","rawr"); // etc
}
}

You can thank me for the A later...

ztini, I've noticed that lately you've been giving away codes for the OP without explaining how the code works and your doing the work that they're suppose to do

Please refrain from helping them this way, it's a lot better if the OP learns on how to solve their own problem than just giving them the exact solution right away

We should help by offering suggestions and algorithms, showing their code errors, suggesting program efficiency or an alternative, etc.

Read this: We only give homework help to those who show effort

Member Avatar for ztini

ztini, I've noticed that lately you've been giving away codes for the OP without explaining how the code works and your doing the work that they're suppose to do

Please refrain from helping them this way, it's a lot better if the OP learns on how to solve their own problem than just giving them the exact solution right away

We should help by offering suggestions and algorithms, showing their code errors, suggesting program efficiency or an alternative, etc.

Read this: We only give homework help to those who show effort

1) Clearly that code is not intended to be taken seriously. It's a class called: i.r.teh.car...

You.getSarcasm() ? false : Me.facepalm();  // This is me making fun of you.

2) Don't presume to tell me how I can post.

3) If you want to post "policy", at least post the official. Read this: http://www.daniweb.com/forums/faq.php?faq=aup. Feel free to follow your homework "guidelines". I'll continue to ignore them.

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.