Java Inheritance | Java example

  Java Inheritance : Inheritance is acquiring the properties of parent class in child class. Re-usability is the important aspect of programming. By extending a class you can use the properties and also add new methods in child class.   There are 3 types of java inheritance Single Inheritance Multi-level Inheritance Hierarchical Inheritance   Single … Read more

Java Polymorphism | Java example

  Java Polymorphism : Polymorphism is one of the concept in OOP in java.The word polymorphism is derived from Greek words poly means many morph means forms and task is done in different types.   There are two types of polymorphism in java   Compile time polymorphism: Compile time polymorphism is achieved by method overloading. … Read more

Show Buttons
Hide Buttons