Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions