package Human;
public abstract class Other_things{
public double Circumstance( ){
return so_so;
}
public double Health( ){
return imorptant;
}
public abstract double Wealth( );
}
public interface Emotion{
public double Smile( );
public double Tears( );
}
public class Happy extends Emotion implements Other_things{
private double Feel_1;
public Happy (double Circumstance, double Health, double Wealth, double Feel_1){
super(Circumstance);
super(Health);
super(Wealth);
this.Feel_1=Feel_1;
}
public double Smile( ){
double Cheerful;
Cheerful=this.Feel_1+this.Circumstance( )+this.Health( )+this.Wealth( );
return Cheerful;
}
public double Tears( ){
double Touch;
Touch=Math.pow((this.Circumstance( )+this.Health( )), this.Feel_1)+this.Wealth;
return Touch;
}
}
public class Sad extends Emotion implements Other_things{
private double Feel_2;
public Sad (double Circumstance, double Health, double Wealth, double Feel_2){
super(Circumstance);
super(Health);
super(Wealth);
this.Feel_2=Feel_2;
}
public double Smile( ){
double Gloss;
Gloss= this.Feel_2*this.Circumstance( )*this.Health( )*this.Wealth( );
Return Gloss;
}
public double Tears( ){
double Upset;
Upset=this.feel+Math.sprt(this.Circumstance( )+this.Health( )+this.Wealth( ));
return Upset;
}
}
public class Complex extends Emotion implements Other_things{
private double Feels;
public Wrong(double Circumstance, double Health, double Wealth, double Feels){
super(Circumstance);
super(Health);
super(Wealth);
this.Feels=Feels;
}
public double Smile( ){
double Wrong;
Gloss=”It’s so complex, the system is wrong! ”
Return Gloss;
}
public double Tears( ){
double Wrong;
Gloss=”It’s so complex, the system is wrong! ”
return Wrong;
}
}
public class Main_Feeling{
public static void main(String[ ] args){
Emotion a,b,c;
a=new Happy(Maybe);
b=new Sad(Maybe);
c=new Complex(I_don’t_know);
System.out.print(a.Smile()+a.Tears());
System.out.print(b.Smile()+b.Tears());
System.out.print(c.Smile()+c.Tears());
}
}