*Sigh*
another assignment thread...maybe we should create one thread dedicated for assignments...hehehehehe.
anyways...
Code:
public class Animal {
int weight;
int LifeExpectancy;
char gender;
String name;
public String type;
Animal(int wt, int life, char ***, String n, String t){
weight = wt;
LifeExpectancy = life;
gender = ***;
name = n;
type = t;
}
public void printValues(){
System.out.println("Values:\n");
System.out.println("Weight : "+weight);
System.out.println("Life Expectancy: "+LifeExpectancy);
System.out.println("Gender: "+gender);
System.out.println("Name : "+name);
System.out.println("Type: "+type);
}
public static void main(String args[]) {
Platypus p1 = new Animal();
}
}
blah blah blah......
maybe that's it. I maybe correct, but if its wrong...just correct them. Ay wait, asa man diay ang Inheritance ani? hihihi.....