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 ..
..
Loading

VulpesRank #55 · 29.2K reputationPosted May 27, 2013, 10:21 AM EDT
Sinu Joseph117 reputationPosted May 28, 2013, 7:27 AM EDT
i hope u will help me next time also
Sinu Joseph117 reputationPosted May 28, 2013, 7:41 AM EDT
2.create an interface called "ifunction" and put signature of 2 methods namely"getfueltype" and "setfueltype" function will return the fueltype of the car such as petrol,diesal etc and setfueltype fun will set the fueltype of the car . after creationg the interface modify the above car class to implement the interface
=plz help me...
VulpesRank #55 · 29.2K reputationPosted May 28, 2013, 10:07 AM EDT