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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!