Posts

Showing posts with the label virtualfunction

what does virtual and pure virtual function means in C++ and in java(abstract)

                  Virtual functions Actually before starting this concept i would like to draw your attention on the term polymorphism that is what polymorphism stands for... Polymorphism means one name many forms in it we have function overloading. Function overriding is a different concept  often people make mistakes in it that what does function overloading and funtion overriding means actually we need these two concepts in mind at the first sight then we would go further defining the virtual functions and pure virtual functions in C++ and in java. so lets understand what is function overloading here as we defined in the polymorphism that one name many forms to be very specific i would like to say one name many implementations. suppose we take a simple example ,take the function of area so declare the function named area at the first... area is the general name , but many implimentations are possible of it such as area of cir...