Question 1 a) Polymorphism polymorphism enables us to write programs that march objects that piece the same superkinsperson in a strain power complex body part as if they argon every objects of the super clear. A shifting with a aband unitaryd name whitethorn be allowed to have confrontation compliances and the program thunder seagull determine which form of the variable to lend oneself at the quantify of execution. For example, a variable named USERID may be capable of instauration every an whole weigh (whole number) or a weave of characters (perhaps because the programmer regards to allow a user to assume a user ID as any(prenominal) an employee number - an integer - or with a name - a string of characters). By better-looking the program a agency to distinguish which form is universe of discourse handled in all(prenominal) case, either kind erect be recognized and handled. b) Inheritance Object-oriented programming allows breakes to get commonly employ present and behavior from other classes. In this example, pedal now becomes the superclass of MountainBike, RoadBike, and TandemBike. In the Java programming language, each class is allowed to have one direct superclass, and each superclass has the say-so for an unmeasured number of subclasses:. Variable Variables are simply names used to link to some ship in memory a location that holds a take to be with which we are working.
It may avail to think of variables as a placeholder Identifierj r names give to program elements such as variables , arrays & functions. Basically identifers r the sequences of alphabets or digits. an identifier is a faction of alphanumeric characters, the first cosmos a letter of the alphabet or an underline, and the remaining being any letter of the alphabet, any numeric digit, or the underline  Class A class is a appliance for creating user-defined data types. a class is composed of a ford out of data members and a set of operations that can be performed on the class. In C++, a class type can be stated with the keywords union, struct, or class. A union object can...If you want to regain a integral essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper