Answered step by step
Verified Expert Solution
Question
1 Approved Answer
10 B3. Analyze the following lava classes, where A is an abstract class and B is a concrete (1000 abstract) class publie abatract class A
10 B3. Analyze the following lava classes, where A is an abstract class and B is a concrete (1000 abstract) class publie abatract class A abstract void ml(); abstract void m204 System.out println("This is an abstract class"); ) 1 public class B extends A 1 Then answer the following questions 1. Is there any error in the class A? Explain why! [2 Marks] b. Is it possible to create an object of the class A? Explain why? [2 marks] c. Is it possible to declare the class A non-abstract? Explain why? [2 marks] d. Is it possible for class A to have explicit constructors! [1 Mark e. Is the following declaration allowed? A my object - new B(); [1 Mark] . Is it possible for the subclass B to not implement the methods ml and m2? Explain why! [2 Marks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started