Questions on oop's concept
HiKindly let me know the answers for the questions that i have faced in my interview.
1)In a program i have two methods, one is absract method and the other one is interface method. Now i will interhit both absract method and interface method into a class. Out these two methods which one will be executed first and why.
Note: sorry, i don't excatly remember the question that he has asked whether we inherit those
method's into a class or another method.
Method1: abstract
{
int a
}
Method2: interface
{
int a
}
class : abstract, interface Note:which of these method will be called or executed first
{ in the class and why.
}
2)In a program two variables will be assigned with the values a=10 and b=5.In output we should get a=5 and b=10. How can we get it.
kindly tell me the answers for above questions and also tell me some such type of questions,that we would face in the interview.and help me to prepare for the interview.
Thanks,
