This content has been marked as final. Show 2 replies
Well, the syntax isn't correct so that won't even compile.
And no, it's not inefficient. You don't have a clue about the real bottlenecks in applications (network, database, etc.) if you're worried about having classes as member variables.
Or did you plan on using only primitive values for your programs? Then you're using the wrong language, you want C.