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
iren2701 [21]
3 years ago
13

How can I link two classes together with spigot to make it so I can open a method within the said class. Trying to open my class

called "Bar" in my "Commands" Class
Computers and Technology
1 answer:
Andreyy893 years ago
5 0

Answer:

add the following code to your bar class

Explanation:

public Bar(Commands n) { }

You might be interested in
Using your choice of C# or Java (NOT in Pseudocode), write an abstract class Vehicle. The Vehicle class contains at least these
vodka [1.7K]

Answer:

public abstract class Vehicle

   {

       private int  id;

       public int  ID

       {

           get { return id; }

           set { id = value; }

       }

       private string model;

       public string Model

       {

           get { return model; }

           set { model = value; }

       }

       public abstract string VehicleDetail(int id, string model);

   }

   public class Car : Vehicle

   {

       public Car()  {  }

       public Car(int id, string model)

       {

           ID = id;

           Model = model;

       }

       public override string VehicleDetail(int id, string model)

       {

           return $"{id} - {model}";

       }

   }

   public class Bus : Vehicle

   {

       public Bus(int id, string model, string make)

       {

           ID = id;

           Model = model;

           Make = make;

       }

       public string Make { get; set; }

       public override string VehicleDetail(int id, string model, string make)

       {

           return $"{id} - {model}" - {make};

       }

   }

Explanation:

7 0
4 years ago
Read 2 more answers
You type. The word "weather" when you ment "whether" when will the writer or word flag this as a misspelling or a grammar proble
xxTIMURxx [149]
Most likely depends on the situation
8 0
3 years ago
What is a histogram?
Mice21 [21]

Answer:

I’m pretty sure its C. Can you mark me Brainliest if I am correct? Thank you have a nice day!

Explanation:

8 0
4 years ago
What are some cowboy ethics??
lys-0071 [83]

Answer:

giv meh a min plsssss

Explanation:

4 0
3 years ago
When you reboot your system, the computer follows startup instructions stored in this type of memory?
hram777 [196]
I think the word ur looking for is hard drive memory
3 0
3 years ago
Read 2 more answers
Other questions:
  • Aubrey didnt like to use graphics or images on her slides. She preferred to use only a title for her slides and bullet-poinged t
    14·2 answers
  • A friend knows I'm taking a technology class in college and asks me how a hard drive works. What should I say to a friend about
    10·1 answer
  • A series of inventions led to the creation of the electronic digital computer shortly after this war..
    12·1 answer
  • What is the correct method to use Dreamweaver to find broken links and orphaned files?
    15·1 answer
  • What analogy could you use to explain the hardware parts of a computer?
    11·1 answer
  • What is the purpose of a register in a CPU? Describe three types of registers.
    12·1 answer
  • Which of these is not the correct method for moving text in a document in Word 2016?
    7·1 answer
  • What is working with others to find a mutually agreeable outcome?
    8·2 answers
  • Tasavvuf kelimesi soyut bir kelimedir.​
    7·1 answer
  • . Which responsibility belongs to the marketing function?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!