Hi Divyya,
In ClassB you have declared but not instantiated ClassC .To refer to ClassC you have to either create an instance of the class or make the ClassC method static .If you choose to make the getValue() method static you will require to make the
String variable value static too .