how dose polymorphism promote extebsibility
C++ virtual function is a member function of a class, whose functionality can be over-ridden in its derived classes. The whole function body can be replaced with a new set of implementation in the derived class.Through this u can be able to promote extensibility in your program by using Virtual function. Very simple concept.
shahzad.dar@superior.edu.pk , shahzad.dar@gmail.com
Lecturer in Superior University ,Lahore
extensibility
polymorphism in coelentrates
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.
Polymorphism is common with barbiturates, steroids, and sulphonamides.
Yes, polymorphism exists between the prokaryotes.
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.
extensibility
One can detect polymorphism by genetic marker using single-nucleotide polymorphism which is able to even tell mutation of a gene.
Extensibility primarily relates to the language itself and is ultimately decided by the C++ standards committee members. Programmers can make proposals to the committee, but they have no influence as such. Extensibility with regards your own programs is entirely down to your design team. The language is immaterial on this regard, it's up to you to decide which standards your programs will adopt, whether extensibility is enabled through COM, NET, scripts or some user-defined/proprietary mechanism. Note that extensibility is not the same as scalability, which is probably what you were really asking.
compiler can decide which form of the object should be invoked during compile time.this type of polymorphism is know as compile time polymorphism
No. Interfaces in Java are a construct to get polymorphism ( subtype polymorphism ) working in Java, but they are not a "kind" of polymorphism. In polymorphism happens when two objects respond to the same message ( method call ) in different way ( hence poly -> many, morphism -> way or shape : polymorphism -> many ways). In Java to be able to send the same message to two different objects you have to either inherit the same parent, or implement the same interface.
Polymorphism is the changing of one subject to an altered state. There are actually two areas of study where polymorphism would be particularly common: chemistry and web programming.