What is Polymorphism?

1 Answer

Answer :

Polymorphism means same operation may behave differently on different classes.
Example : 1. Method Overloading and Method Overriding

Related questions

Description : What is Interface?

Last Answer : An Interface is a group of constants and method declaration interface like classes, define a set of properties, methods, and events. But unlike classes, interfaces do not provide implementation

Description : How many types of Access Modifiers?

Last Answer : Public – Allows the members to be globally accessible. Private – Limits the member’s access to only the containing type. Protected – Limits the member’s access to the containing type and all classes derived from the containing type. Internal – Limits the member’s access to within the current project

Description : Whait is Method overriding?

Last Answer : Method overriding occurs when child class declares a method that has the same type arguments as a method declared by one of its superclass. By declaring base class function as virtual, we allow the function to be overridden in any of derived class

Description : What is a Method Overloading?

Last Answer : Method with same name but with different arguments is called method overloading

Description : Is .NET C# supports Multiple inheritance?

Last Answer : Multiple inheritance of classes is not allowed in C#. but In C# you can implements more than one interface, thus multiple inheritance is achieved through interface

Description : Can you allow a class to be inherited, but prevent the method from being overridden?

Last Answer : Yes. Just leave the class public and make the method sealed

Description : Can you prevent your class from being inherited by another class?

Last Answer : Yes. The keyword “sealed” will prevent the class from being inherited.

Description : What are Sealed Classes in C#?

Last Answer : The sealed modifier is used to prevent derivation from a class

Description : What is an Inheritance?

Last Answer : The process of sub-classing a class to extend its functionality is called Inheritance. Advantage : It provides idea of reusability.

Description : What is ref keyword & out keyword?

Last Answer : Refrence Variable “must” be initialized before it is passed into a method.

Description : What is Value Type and Reference Type?

Last Answer : A variable is value type or reference type is solely determined by its data type. Ex: int, float, char, decimal, bool, decimal, struct, etc are value types As name suggest Reference Type stores reference to the ... ; Y = X; Console.writeline(Y.value); Y.value = 50; Console.writeline(X.value);

Description : What is Enumeration?

Last Answer : Enumeration improves code readability. It also helps in avoiding typing mistake

Description : What is a Garbage collection?

Last Answer : Garbage collection is the mechanism that reclaims the memory resources of an object when it is no longer referenced by a variable. And Net Runtime performs automatically performs garbage collection

Description : What is the difference between the destructor and the Finalize() method? When does the Finalize() method get called?

Last Answer : Finalize() corresponds to the .Net Framework and is part of the System.Object class. Destructors are C#'s implementation of the Finalize() method. The functionality of both Finalize() and the destructor is the same

Description : What is Destructor?

Last Answer : A destructor is just opposite to constructor. it has same as the class name, but with prefix ~ (tilde). They do not have return types

Description : What is Finalize() Method of Object class?

Last Answer : Each class in C# is automatically (implicitly) inherited from the Object class which contains a method Finalize(). This method is guaranteed to be called when your object is garbage collected

Description : What is Static Constructor?

Last Answer : In C# it is possible to write a static no-parameter constructor for a class. Such a class is executed once, when first object of class is created. Class MyClass { static MyClass() { //Initialization Code for static fields and properties. } }

Description : What is Static Method of the class?

Last Answer : Methods that you can call directly without first creating an instance of a class. 1. As static methods may be called without any reference to object

Description : What is static member of a calss?

Last Answer : Static members belong to the whole class rather than to individual object Static members are accessed with the name of class rather than reference to objects

Description : What is Constructor?

Last Answer : A constructor is a special method whose task is to initialize the object of its class. 1. It is special because its name is the same as the class name 2. They do not have return ... can call the base class constructor 4. Constructor is invoked whenever an object of its associated class is created

Description : Whar are properties?

Last Answer : Attribute of object is called properties Example:- A car has color as property.

Description : What is an encapsulation?

Last Answer : Wrapping up of data and function into a single unit is known as Encapsulation.

Description : What is an Object?

Last Answer : Instance of Class is called object. An object is created in memory using keyword “new”.

Description : What is a Class?

Last Answer : A user-defined data structure that groups properties and methods. Class doesn’t occupies memory.

Description : What is DNA polymorphism? -Biology

Last Answer : answer:

Description : Explain Polymorphism? -Biology

Last Answer : answer:

Description : What is DNA polymorphism? -Biology

Last Answer : answer:

Description : What is the polymorphism of elements ?

Last Answer : Polymorphism of elements is different forms of the same element. If an element can exist in different forms, then its religion is called polymorphism. These variations differ from one another in physicality and in the ... of three types. Namely: a. Charcoal or coal , b. Straw coal and c. Cole.

Description : $ Arthropoda is the largest group in the animal kingdom. ! Honey bee shows polymorphism.

Last Answer : $ Arthropoda is the largest group in the animal kingdom. ! Honey bee shows polymorphism. A. If both As and ... is wrong D. If both As and R are wrong.

Description : All the following statements about restriction fragment length polymorphism are true except (A) It results from mutations in restriction sites (B) Mutations in restriction sites can occur in coding or non- ... It is inherited in Mendelian fashion (D) It can be used to diagnose any genetic disease

Last Answer : Answer : D

Description : Ceramic materials (A) Are exemplified by clay and mica (B) Are poor electrical conductors due to lack of free electrons (C) Never exhibit polymorphism (D) All (A), (B) and (C)

Last Answer : (D) All (A), (B) and (C)

Description : Polymorphism is not exhibited by (A) Carbon (B) Iron (C) Phosphorous (D) None of these

Last Answer : (D) None of these

Description : What is polymorphism

Last Answer : Polymorphism is the ability to implement the same operation many times. Each derived method implements the operation inherited from the base class in its own way.

Description : PCR and restriction fragment length polymorphism are the methods for (a) study of enzymes (b) genetic transformation (c) DNA sequencing (d) genetic fingerprinting.

Last Answer : (d) genetic fingerprinting.

Description : Satellite DNA is important because it (a) does not code for proteins and is same in all members of the population (b) codes for enzymes needed for DNA replication (c) codes for proteins ... and also the same degree of polymorphism in an individual, which is heritable from parents to children.

Last Answer : (d) shows high degree of polymorphism in population and also the same degree of polymorphism in an individual, which is heritable from parents to children

Description : .Expressed Sequence Tags (ESTs) refers to (a) novel DNA sequences (b) genes expressed as RNA (c) polypeptide expression (d) DNA polymorphism.

Last Answer : (b) genes expressed as RNA

Description : One of the special characters of coelenterata only is the occurrence of (a) polymorphism (b) flame cells (c) hermaphroditism (d) nematocysts.

Last Answer : (d) nematocysts.

Description : Which one of the following is a matching pair of an animal and a certain phenomenon it exhibits? (a) Pheretima – Sexual dimorphism (b) Musca – Complete metamorphosis (c) Chameleon – Mimicry (d) Taenia – Polymorphism

Last Answer : (b) Musca – Complete metamorphosis

Description : Which among the following definitions are correct: a) Object - Any entity that has state and behavior is known as an object. b) Class - Collection of objects is called class. It is logical entity. c) ... re-usability and is used to achieve run time polymorphism. d) All of the above e) None of These

Last Answer : d) All of the above

Description : Which of the following statement is correct? A- The size and sequence of introns can be deduced from the cDNA sequence B- Restriction endonuclease can cleave ss and dsDNA both C- Restriction ... sequenceof a gene D- Amino acid sequence of a protein can be deduced from corresponding cDNA nucleotide

Last Answer : Amino acid sequence of a protein can be deduced from corresponding cDNA nucleotide

Description : Which of the following statement is correct? A- The size and sequence of introns can be deduced from the cDNA sequence B- .Restriction endonuclease can cleave ss and dsDNA both C- Restriction ... of a Gene D- Amino acid sequence of a protein can be deduced from corresponding cDNA nucleotide

Last Answer : Amino acid sequence of a protein can be deduced from corresponding cDNA nucleotide

Description : Which of the following statement is correct? A- The size and sequence of introns can be deduced from the cDNA sequence B- .Restriction endonuclease can cleave ss and dsDNA both C- Restriction ... of a Gene D- Amino acid sequence of a protein can be deduced from corresponding cDNA nucleotide

Last Answer : Amino acid sequence of a protein can be deduced from corresponding cDNA nucleotide

Description : Which of the following cloud concept is related to pooling and sharing of resources? a) Polymorphism b) Abstraction c) Virtualization d) None of the mentioned

Last Answer : Virtualization

Description : Which of the following cloud concept is related to pooling and sharing of resources? a) Polymorphism b) Abstraction c) Virtualization d) None of the mentioned

Last Answer : Virtualization

Description : Which of the following cloud concept is related to pooling and sharing of resources? a) Polymorphism b) Abstraction c) Virtualization d) None of the mentioned

Last Answer : Virtualization

Description : Define what is the difference between compile-time polymorphism and run-time polymorphism?

Last Answer : Compile time Polymorphism Compile time Polymorphism also known as method overloading. Method overloading means having two or more methods with the same name but with different signatures. Run time ... or more methods with the same name, same signature but with a different implementation.

Description : Define what are the different types of polymorphism?

Last Answer : There are two types of polymorphism. They are: Compile time Polymorphism Run time Polymorphism

Description : What is Polymorphism? How is it implemented in Java?

Last Answer : A: It literally means the ability to take ‘more than one forms’. The ability of a method to behave in more than one form is called polymorphism. In Java, it is implemented by method (function) overloading (compile time polymorphism) and method overriding (runtime polymorphism).

Description : Define polymorphism

Last Answer : The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form. Real life example of polymorphism: A person ... different characteristic. Like a man at the same time is a father, a husband, an employee.

Description : Polymorphism and frameworks:

Last Answer : Software produced conventionally is generally written from the bottom up, although it may be designed from the top down . that is , the lower-level routines are written and on top of these ... reusable components that can be tailored to fit different applications by changes in their low-level Parts.