Sinu  Joseph

Sinu Joseph

  • NA
  • 136
  • 67.1k

oops interface called varibletest

May 27 2013 10:53 AM
create an interface called VariableTest Which contains A method called disp() and 2 variables x,y which are integers and whose value is set as 10 and 20 . create a class called VarLntTest which impliments this Interface . the disp() method should display a message "inside interface-variableTest and method disp" write a method called display() within VarIntTest class which prints the value of x

CAN U GUYS PLZ HELP ME TO FIND OUT THIS ANS AND PLZ GIVE EXPLAANTION OF THIS PROBLEM TOO ..
I WANT TO KNOW THE LOGIC THTS Y ..
..

Answers (4)