Question

In: Computer Science

Please type answer for i can copy it. Thank you very much. -Question 1 What is...

Please type answer for i can copy it. Thank you very much.

-Question 1

What is a polymorphism ?

-Question 2

Can you start an algorithm in pseudo code?


language is in (OOP) object oriented programming

Solutions

Expert Solution

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

1)

In a programming language that basically shows polymorphism, objects of classes belonging to the identical hierarchical tree (inherited from a commonplace base class) may possess features bearing the same call — however, every having appropriate behaviors.

For instance, expect there's a base class named Animals from which the subclasses Horse, Fish, and bird are derived. Also, assume that the Animals class has a characteristic called pass, that's inherited by all subclasses mentioned. With polymorphism, each subclass may additionally have its manner of imposing the feature. So, as an example, when the pass function is called in an object of the horse class, the function would possibly reply via displaying trotting at the display. On the other hand, when the same characteristic is known as in an item of the Fish class, swimming might be presented at the screen. Within the case of a fowl item, it can be flying.

2)

Yes, it is often done. Algorithm is basically code to communicate with computer. It is high level code which is transformed to low-level while running through the compiler. But, the pseudocode is a plain english code to which a human can read and interpret its meaning easily without any hustle. Any algorithm can be stated in psudocode to explain.

Kindly revert for any queries

Thanks.


Related Solutions

Please type the answer for i can copy it. Thank you very much. -Question 1 Respond...
Please type the answer for i can copy it. Thank you very much. -Question 1 Respond to the following in a minimum of 175 words: Read the following pseudocode class definitions: Class Plant Public Module message() Display "I'm a plant." End Module End Class Class Tree Extends Plant Public Module message() Display "I'm a tree." End Module End Class -Question 2 Given these class definitions, determine what the following pseudocode will display: Declare Plant p Set p = New Tree()...
Please type out answer for i can copy it. Need at least 175 words. Thank you...
Please type out answer for i can copy it. Need at least 175 words. Thank you very much. -Question Why are data manipulation, efficiency, and memory useful in programming? Provide specific examples for each.
HI please answer all parts of my question. Thank you so much! I will rate you!...
HI please answer all parts of my question. Thank you so much! I will rate you! Why do we call cardiac muscle to be a syncytium of many individual muscle cells? What is the name of membranes that connect longitudinally adjacent muscle cells? As you know the mechanism of organophosphates involves irreversible inhibitors of AChE. Organophosphates have been used in several murders (VX used to kill the half-brother of North Korean dictator Kim Jong Un; Sarin gas used to kill...
Please answer a statistic problem(please answer all subquestions). Thank you very much. NCbirths, cont' d. This...
Please answer a statistic problem(please answer all subquestions). Thank you very much. NCbirths, cont' d. This time we will use a subset of the dataset after removing premature birth (36 weeks or sooner) and continue to use MomRace as the explanatory variable to predict birth weight. To get NCbirths: install.packages("Stat2Data") library(Stat2Data) data("NCbirths") (a) Use the following R command to remove premature birth and create a dataset noPremie. noPremies<-subset(NCbirths, NCbirths$Premie==0) ##subset(dataName, condition) (b) Construct a side-by-side boxplot of birth weights separated...
PLEASE ANSWER ALL 4 THANK YOU VERY MUCH!!!! 1. How was the Periodic Table originally organized?...
PLEASE ANSWER ALL 4 THANK YOU VERY MUCH!!!! 1. How was the Periodic Table originally organized? Explain the current organization of the Periodic Table and why it is a more accurate layout of the elements. 2. What is the difference between groups and periods? What are the common names for groups IA, IIA, VIIA, VIIIA? 3. Why were elements in group 18, VIIIA, formerly known as inert gases? How is the current name of “noble gases” more appropriate? Provide examples...
Please answer each question and show calculation/ provide explanations. Thank you so much. Question 1 You...
Please answer each question and show calculation/ provide explanations. Thank you so much. Question 1 You have just been hired as the staff accountant for Maximum Corporation. However, the accounting manager is unclear about your ability to determine where certain increases and decreases should be placed. Indicate in the columns below by placing a check-mark (√        ) in the appropriate column identified. Office rent is increased.                                   Service Revenue is increased. Prepaid Expense is reduced. Cash is decreased. Plant and machinery...
Can you please type, I will rate you well! Thank you! In this activity, you will...
Can you please type, I will rate you well! Thank you! In this activity, you will be devising a Data Collection plan that describes how information on each asset will be collected. Develop a Data Collection plan that can be used to perform Data Collection on the different assets in the Action Forensics organization. As you develop this plan you will have to make decisions based on your understanding of how the company works. Do not worry that you are...
please type thank you What are hazardous materials definitions defined by DOT? Get a copy of...
please type thank you What are hazardous materials definitions defined by DOT? Get a copy of 2004 Emergency Response Guide Book! Extra credit!!! Find initial isolation and protective action distances for “Chlorine GAS”. Use on-line sources. How many reported hazardous materials incidents in year 2017 and 2018? DOT, Hazardous Materials Regulation under Title ______ Part ___________.
please answer question 3 and 4 based on the article below. thank you Questions What type...
please answer question 3 and 4 based on the article below. thank you Questions What type of international strategy would you say Inditex is following? Justify your answer. What is Zara’s business strategy? Explain. How is the international strategy of Inditex related to the business strategy of Zara? Explain. Why is it that no other fashion retailer can match Zara's performance? Inditex is a Spanish company started more than forty years ago, which owns Zara and other brands. The first...
Please type out answer, thank you. Question 1 On October 1, 2018, the Marshall Company sold...
Please type out answer, thank you. Question 1 On October 1, 2018, the Marshall Company sold a large piece of machinery to the Hammond Construction Company for $80,000. The cost of the machine was $40,000. Hammond made a down payment of $10,000 and agreed to pay the remaining balance in seven equal monthly installments of $10,000, plus interest at 12% on the unpaid balance, beginning November 1. Required: Identify three alternative methods for recognizing revenue and costs for the situation...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT