@BroCodez

//*************************************
public class Main {

	public static void main(String[] args) {
		
		// inheritance = 	the process where one class acquires,
		//					the attributes and methods of another.
		
		Car car = new Car();
		
		car.go();
		
		Bicycle bike = new Bicycle();
		
		car.go();
		bike.stop();
		
		System.out.println(car.doors);
		System.out.println(bike.pedals);
				
	}
}
//*************************************
public class Vehicle{
double speed;

void go(){
System.out.println("This vehicle is moving");
}
void stop(){
System.out.println("This vehicle is stopped");
}
}
//*************************************
public class Car extends Vehicle{
int wheels = 4;
int door = 4;
}
//*************************************
public class Bicycle extends Vehicle{
int wheels = 2;
int pedals = 2;
}
//*************************************

@shyam.upadhyay

Bro inherited awesome teaching skills from parent class.

@BrandonMorrow-v4h

You are hands down the best code teacher on YouTube.

@rikjinny763

If only most programming teachers explained simply like you, thanks for the explanation!

@hanac5586

Clear and straight to the point. Thank you <3

@cosecE

you have no idea how better this video made me feel thank you so much college been really overwhelming so far

@satvikraval3571

Thank you Bro. No confusion, straight to the point, no BS

@kidshome6295

best teacher ever
 !!!!!!!!!!!!!!!!!!!! you made my life easy God bless you and your beloved ones for ever !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@BinsiAgone

I spent much time to understand this program but once watching your video made it very simple for me. Thank you so much for this video.

@silasbrailey2445

This was great. My professor is making it his life's work to make sure I dont understand inheritance.

@pavelkvasnicka6856

This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro

@liliacfury

Tysm for these videos! I love learning how to code but had to drop my Java class to make room for a period of basketball. Now I can do both :)

@brainygamemind6054

Everyone who works hard deserve to be successful I hope everyone is having an amazing day.

@bernardcyrus8189

Prayers answered! Most straight forward explanation I’ve seen!

@karlodinn5426

Great Explanation as Always

@100rats2

Thanks for making it short and having  nothing useless

@YonatanHaile-rf2jm

Simple yet an amazing explanation

@Nithushan21

Bro you explained it so good and so efficiently! Thank you!

@YairRachmany

Very awesome video