Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32062

oops interface called varibletest

$
0
0
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 ..
..

Viewing all articles
Browse latest Browse all 32062

Trending Articles