Question

Describe the characteristics of an abstract class in java

Describe the characteristics of an abstract class in java

Homework Answers

Answer #1

What is Abstract class?

Answer: A class which is declared with the abstract keyword is known as an abstract class in java

it can have abstract and non-abstract methods

Describe the characteristics of an abstract class in java

Answer:1.An adstract class must be declared with an abstract keyword

2. it can have adstract and non-abstract methods

3.it cannot be instantiated

4.it can have constructors and static methods

5.it can have final methods which will force the subclass not to change the body of the method

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Describe why a class is ADT (Abstract Data Type)? Why a stack is ADT?
Describe why a class is ADT (Abstract Data Type)? Why a stack is ADT?
Coding in Java Create an Airplane class (not abstract) that uses the Vehicle interface in Q1....
Coding in Java Create an Airplane class (not abstract) that uses the Vehicle interface in Q1. The code for all methods should print simple messages to the screen using System.out.println(). Add an integer speed variable that is changed using ChangeSpeed method. ChangeSpeed adds 5 to the speed each time it is called. Create a default constructor that sets the initial speed to 0. Don't create other constructors or any setter/getter methods. // code from Q1: interface Vehicle { void Start();...
Which of the following situations described is a good situation to use an abstract class, and...
Which of the following situations described is a good situation to use an abstract class, and where it would be better to use than either a concrete class or an interface? When some methods in the class are abstract and some are concrete, and some variables in the class need to be private, while other variables need to be public When the inheriting class is closely related to the abstract class, such as with an "is-a" relationship When the objects...
Describe the rules governing identifiers. Can identifiers be re-used in the same Java class file? Provide...
Describe the rules governing identifiers. Can identifiers be re-used in the same Java class file? Provide three examples of different kinds of invalid identifiers.
1. if you provide an empty method within an abstract class, the method is an abstract...
1. if you provide an empty method within an abstract class, the method is an abstract method even if you do not explicitly use the keyword ____ when defining method a. virtual b. implement c. abstract d. extends 2. when you create a number of classes that inherit from each other, as well as multiple interfaces that you want to implement with these classes, you often will find it convenient to place these related classes in a ______- a.group b....
Create an Airplane class (not abstract) that uses the Vehicle interface in Q1. The code for...
Create an Airplane class (not abstract) that uses the Vehicle interface in Q1. The code for all methods should print simple messages to the screen using System.out.println(). Add an integer speed variable that is changed using the ChangeSpeed method. ChangeSpeed adds 5 to the speed each time it is called. Create a default constructor that sets the initial speed to 0. Don't create other constructors or any setter/getter methods. PLEASE CODE THIS IN JAVA
Shapes2D Write the following four classes to practice using an abstract class and polymorphism. Submit all...
Shapes2D Write the following four classes to practice using an abstract class and polymorphism. Submit all four classes. Shape2D class For this class, include just an abstract method name get2DArea() that returns a double. Rectangle2D class Make this class inherit from the Shape2D class. Have it store a length and a width as fields. Provide a constructor that takes two double arguments and uses them to set the fields. Note, the area of a rectangle is the length times the...
Consider the ArrayList and LinkedList classes of the standard library. What abstract class do they extend?...
Consider the ArrayList and LinkedList classes of the standard library. What abstract class do they extend? What interface types does that abstract class implement? Draw a class diagram
Consider the HashSet and TreeSet classes of the standard library. What abstract class do they extend?...
Consider the HashSet and TreeSet classes of the standard library. What abstract class do they extend? What interface types does that abstract class implement? Draw a class diagram
This is Java programing.Modify this Java code,so that each franchise can assign and print their own...
This is Java programing.Modify this Java code,so that each franchise can assign and print their own burger price.The programing have at least three franchises. (Use abstract) class newBurger { public newBurger() { } public void salmonBurger(){    System.out.println("salmonBurger $5.99");    System.out.println("Kcal: 294"); } public void clamBurger(){    System.out.println("clamBurger $4.99");    System.out.println("Kcal: 200"); } public void oysterBurger(){    System.out.println("oysterBurger $3.50");    System.out.println("Kcal: 125"); } } class franchise1 extends newBurger { String name = "franchise #1"; public franchise1() { } } public...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT