Develop an interface named Bank. In Bank interface there is an abstract method rateOfInterest(). Now implement Bank interface to Sbi and Pnb classes and override the method rateOfInterest(). Now test the classes Sbi and Pnb.
Answers
Answered by
0
Step-by-step explanation:
Interface looks like a class but it is not a class. An interface can have methods and variables just like the class but the methods declared in interface are by default abstract (only method signature, no body, see: Java abstract method). Also, the variables declared in an interface are public, static & final by default. We will cover this in detail, later in this guide.
Answered by
0
Step-by-step explanation:
hiii
2 answer are there above all are correct you can choose it for mark bye give ratings
Similar questions