Question: For Java, 1. What is an abstract method? How is an abstract method created? 2. What is an abstract class? 3. Can an object of
For Java,
1. What is an abstract method? How is an abstract method created?
2. What is an abstract class?
3. Can an object of an abstract class be instantiated?
4. Does a superclass have access to the members of subclass? Does a subclass have access to the members of the superclass?
5. How do you prevent a subclass from having access to a member of a superclass?
6. Given the following hierarchy:
class Alpha{
class Beta extends Alpha {
class Gamma extends Beta {
In what order are the constructors for these classes called when a Gamma object is instantiated?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
