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

Java Encapsulation || Java example

  Java Encapsulation : Java encapsulation is a process of wrapping up of data members and member function.Don’t get it no worries read the blog till the end and you will clearly understand this concept. A basic example of en-capsule it to cover or enclose something within it just as a protection from outer surface. … Read more

Java Abstraction | Java example

  Java Abstraction : Java Abstraction is a part of OOP concept which takes care of hiding the underlying definition of methods.We can get to know in detail in this part of tutorial. abstract keyword is used to achieve abstraction in java.   Object Creation: Object of a class is create to make use of … Read more

Show Buttons
Hide Buttons