Polymorphism provide facility by which we can use two or more than two funtion within same name in a class. we can achieve polymorphism using two technique;
funtion overloading:
It provide facility by which we can write two or more than two functions having same name withy different signature in a single class or in derived class.
funtion overriding
It provide facility by which we can write two or more than two functions having same name withy same signature in a single class or in derived class.
funtion overloading:
It provide facility by which we can write two or more than two functions having same name withy different signature in a single class or in derived class.
funtion overriding
It provide facility by which we can write two or more than two functions having same name withy same signature in a single class or in derived class.
No comments:
Post a Comment