answersLogoWhite

0

Does structure support polymorphism

User Avatar

Anonymous

13y ago
Updated: 8/20/2019

Yes. The only difference between a struct and a class is that a struct's members and inheritance is public by default, while a class' members and inheritance are private by default. Structs can derive from classes and classes can derive from structs. As such, they are polymorphic.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Does c language support polymorphism?

C++ does.


Does non crystalline material possess the concept of allotropy or polymorphism?

No, non-crystalline materials do not exhibit allotropy or polymorphism since these concepts refer to the ability of crystalline materials to exist in different structures or forms while maintaining the same chemical composition. Non-crystalline materials lack the ordered structure needed for allotropy or polymorphism.


What is Differentiate between polymorphism and isomerism?

Polymorphism and Allotropy are same thing. Polymorphism is used for compounds and the allotropy is reserved for elements. You can go for XRD to check the crystal structure and their composition to distinguish.


Polymorphism in coelentrates?

polymorphism in coelentrates


Difference between a class and a struct?

By default, all of the members of a class are private and, by default, all of the members of a structure are public.Structure are value type where as class are reference type.'this' pointer will work only in class.Inheritance between classes is also private by default, and inheritance between structs is public by default.Classes support polymorphism, whereas structure do not.


What is polymorphism and its types?

Polymorphism means multiple form of a function, variable or object. In Computer Science, polymorphism is a programming language feature that allows values of different data types to be handles using a common interface. There are three types : Ad-Hoc Polymosphism, Parametric Polymorphism, Subtype/Inclusion Polymorphism. Source: Wikipedia.


What kind of drugs commonly has polymorphism?

Polymorphism is common with barbiturates, steroids, and sulphonamides.


Is polymorphism exist between prokaryotes?

Yes, polymorphism exists between the prokaryotes.


What is Difference between dynamic polymorphism and static polymorphism with example?

Static polymorphism is used the concept of early binding or we can say compile time binding where as dynamic polymorphism used the concept of late binding or run time binding.


How can one detect polymorphism by genetic marker?

One can detect polymorphism by genetic marker using single-nucleotide polymorphism which is able to even tell mutation of a gene.


What is a non synonymous polymorphism?

Substitutions that result in amino acid replacements are said to be nonsynonymous while substitutions that do not cause an amino acid replacement (such as a GGG to GGC change - both codons still encode glycine) are said to be synonymous substitutions


What is an internal body-support structure called?

An internal body-support structure is called a skeleton. It provides support, protection, and structure for the body.