Learning Java – (Video 7) Tutorial Series – Inheritance

This is seventh video in the series of Learning Java, In this video important concept Inheritance is explained in java.

If you feel this video is useful, Please share it with your friends on Facebook, twitter Google plus etc.

Code developed in this tutorial provided below:

public class SuperClass {

	static void methodAdd(){
		System.out.println("I am inside method ADD");
	protected static void methodMultiply(){
		System.out.println("I am inside method Multipy");


public class SubClass extends SuperClass{

	public static void methodSub(){
		System.out.println("I am inside method SUB");


public class HelloWorld {

	 * @param args
	public static void main(String[] args) {

For further reading refer Java Programming Category posts.

Share this post

Learning Java Inheritance Example
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *