Polymorphism in Python With Examples

In this post we’ll see the usage of OOPS concept Polymorphism in Python. Table of contents What is Polymorphism Polymorphism in Python Compile time polymorphism (Method Overloading) Runtime polymorphism (Method Overriding) Polymorphism in Python through operator overloading Duck typing and Polymorphism What is Polymorphism Polymorphism is a Greek word where…

Continue reading

LinkedTransferQueue in Java With Examples

LinkedTransferQueue in Java is an implementation of the TransferQueue interface and is part of java.util.concurrent package. It was added in Java 7. TransferQueue interface in Java TransferQueue interface which extends BlockingQueue interface adds the capability where producers may wait for consumers to receive elements. In BlockingQueue implementations like ArrayBlockingQueue, PriorityBlockingQueue…

Continue reading