1: What is an abstract class and an abstract method? Explain using the below code. 2: What...
Fantastic news! We've Found the answer you've been seeking!
Question:
1: What is an abstract class and an abstract method? Explain using the below code.
2: What is an interface? How are they different from abstract classes? Explain using the below code.
3: Explain the difference between the three access types public, private and protected. Explain briefly using the below code.
4: Write an example class that uses both the abstract class and the interface. Just the minimum skeleton of the required functions need to be shown. Body of the function need not be shown. Just the relevant details need to be shown.
Related Book For
Posted Date: