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 answer for i can copy it. Thank you very much. -Question Respond to the...
Please type answer for i can copy it. Thank you very much. -Question Respond to the following in a minimum of 175 words: Discuss the following:   Differences, advantages, and disadvantages of Java® compared to another language of your choice (e.g., C++, Python, Ruby) Database connectivity and file handling in Java® and in your other chosen language  
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.
CAN YOU PLEASE ANSWER ALL QUESTION AND PLEASE ANSWER AS SOON AS POSSIBLE THANK YOU 1....
CAN YOU PLEASE ANSWER ALL QUESTION AND PLEASE ANSWER AS SOON AS POSSIBLE THANK YOU 1. Behavioral activity is prone to a lot of variation; would Open field and Inhibitory Avoidance be valuable Primary and only endpoint measures? Explain why? 2. Lesions of the amygdala made after a delay from training result in partial retention of fear motivated Inhibitory avoidance task. On the other hand, pharmacological manipulations of the amygdala immediately after training abolished the strength of inhibitory avoidance learning....
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...
Java questions. Please answer everything. It mean the world to me. Thank you very much Identify...
Java questions. Please answer everything. It mean the world to me. Thank you very much Identify the errors in the following code fragment: 1: ArrayList<String> list = new ArrayList<String>(); 2: list.add( "Denver" ); 3: list.add( "Austin" ); 4: list.add( new java.util.Date() ); 5: String city = list.get( 0 ); 6: list.set( 2, "Dallas" ); 7: System.out.println( list.get(2) ); Explain why the following code fragment displays [1, 3] rather than [2, 3]. 1: ArrayList<Integer> list = new ArrayList<Integer>(); 2: list.add(1); 3:...
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT