Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Java] Class Hierarchy Design - Serious Help Needed!
#1
This one... I have NO CLUE how to even start. I hate the teacher because he doesn't want us to ask any questions to him so I'm back here requesting help.

Design a class hierarchy that allows to determine the type of result of an expression following the precedence and combination rules of the C language. The expression is to be supplied as a String using, instead of variables, the type corresponding to each one of them.

For example, assuming the following group of declarations and expression:

int a;
float b;
char c;

b= a / c + (c + 25)

the corresponding String would be supplied as:

float = int / char + (char + int)
resulting in a float.




--------------------------


*lost*
Reply


Messages In This Thread
[Java] Class Hierarchy Design - Serious Help Needed! - by Conciente - 2009-02-02, 10:00 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)