1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
masha68 [24]
4 years ago
12

a. Create an Abstract class called Vehicle with abstract methods accelerate, stop, and gas, & data of your choice (5 marks)

b. Create an Interface called Automobile defining a number of logical data and methods (5 marks) c. Create subclasses Motorcycle & Bus as children of class Vehicle overriding the necessary methods (5 marks) d. Create class Sedan and SportsCar using the Interface Automobile and Abstract Class Vehicle appropriately (5 marks) e. Create a main class and create an instance of class Sedan in its main method. Demonstrate method overloading and overriding using method accelerate() (10marks
Computers and Technology
1 answer:
finlep [7]4 years ago
5 0

Answer:

b

Explanation:

You might be interested in
Can anybody do Algorithm 2 for me (with Python).<br> Answer = 25 points.
Nostrana [21]

Answer:

age=int(input("Enter age"))

if age>=18:

    print("You are Young")

else

   print("You are child")

Explanation:

if you have any query or any problem kindly ask in comment

5 0
3 years ago
How do u answer questions on brainly if ur on the app and on a phone. For me there is no answer button :(
Rudik [331]

Answer:

oh for me there is maybe try reloading?

Explanation:

8 0
3 years ago
Create an application (that uses the SortedABList) that allows a user to enter a list of countries that he or she has visited an
gulaghasi [49]

Answer:

import java.util.*;

public class Country

{

  public static void main(String args[])

  {

      char ch,temp;

      int flag = 0;

      String country;

      ArrayList<String> countries = new ArrayList<String>();

      Scanner sc = new Scanner(System.in);

      do

      {

          System.out.println("enter the country you have visited:\t");

          country = sc.next();

          for(int i=0;i<countries.size();i++)

          {

              if(countries.get(i).equals(country))

              {

                  System.out.println("you have already entered the country");

                  flag = 1;

                  break;      

              }

          }

          if(flag == 0)

          {

              countries.add(country);

              flag = 0;

          }

          System.out.println("want to add another country(y/n):\t");

          ch = sc.next().charAt(0);

      }while(ch!='n');

      Collections.sort(countries);

      System.out.println("Countries you have visited:\t"+countries);

      System.out.println("Total number of contries visited:"+countries.size());

     

  }

}

Explanation:

8 0
4 years ago
Name 3 coding languages
Pavlova-9 [17]

Answer:

javascript, python, c#

Explanation:

7 0
3 years ago
Read 2 more answers
Fourth-generation languages are commonly used to access ____
Nesterboy [21]
Databases use fourth-generation languages in order to access its contents. These fourth-generation programming languages are widely used in database managing. It was designed to have a more specific use in contrast to the commonly used 3G languages at that time. 
6 0
3 years ago
Other questions:
  • Windows server 2012 r2 supports two types of folder shares. what are those two types?
    6·1 answer
  • What is the real meaning of hack and crack?
    6·1 answer
  • PLEASE ANSWER QUICK!.....I am trying to buy a computer so I can play Crysis 3 what are computers that are good for this high det
    12·1 answer
  • If the derived class does not override a public member function of the base class, you may specify a call to that public member
    7·1 answer
  • What occurs when an application sends user-fed data directly to a web browser without authenticating or deleting the content? Cr
    15·1 answer
  • Sniffer turns the NIC of a system to the promiscuous mode so that it listens to all the data transmitted on its segment. It can
    5·1 answer
  • I am needing help with this homework of mine.
    7·1 answer
  • What are the characteristics of a good text-based adventure game? In other words, what are some features that should be in the g
    7·1 answer
  • What's the best thing that's happened to you during quarantine?
    10·2 answers
  • Digital computers use a........ system to encode date and programs.<br>​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!