ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Another excellent explanation
you are doing very good job
Thanks
best oop course so far
very help this vidio in interview 😇😇😇
Excellent Explation
Bing watching this playlist
Great sir ❤🎉
Thanks Bhai ❤❤❤
Excellent explanation ❤❤❤
Superb Sir 🎉
Well explained brother.
thanks bro please subscribe us for more content to come
Quality education brother ❤
Bro please continue your vedios
please subscribe more videos are coming
DSA and other ppl k video chahiy
Nice ❤
Thanks Bhai aap pehle kiu nhi mile😅
super explaination.. but please tell me the name of this theme of your vs code.
Brother make a MERN stack project's ❤
👍👍
Is pyr ko Kia naam do 😂 Acha smjaya ap ny sir ❤
Bhai aap kahan ho 9 mahine se ek video upload nhi ki
❤
DSA bh parhaye
pdf mil skta h kya notes k?
ok
can we do this useing contructor : here it is :class Vehicle{ double price; double mileage; String color; void show(){ System.out.println("price: "+price); System.out.println("mileage: "+mileage); System.out.println("color: "+color); }}class Car extends Vehicle{ int tires; String fuelType; String brand; boolean sunRoof; public Car(String Brand,double Price,double Mileage,String Color,int Tires,String fType,boolean sunroof){ this.brand = Brand; this.mileage = Mileage; this.color = Color; this.tires = Tires; this.fuelType = fType; this.sunRoof = sunroof; this.price = Price; } public void printVehicleData(){ System.out.println("Brand: "+brand); System.out.println("Price: "+price); System.out.println("mileage: "+mileage); System.out.println("color: "+color); System.out.println("Fuel type: "+fuelType); System.out.println("Tires: "+tires); System.out.println("sunRoof present or not: "+sunRoof); }}public class inheritance2 { public static void main(String[] args) { Car car1 = new Car("Tata",1500000,30,"Red",4,"Diesel",true); car1.printVehicleData(); }}
Another excellent explanation
you are doing very good job
Thanks
best oop course so far
very help this vidio in interview 😇😇😇
Excellent Explation
Bing watching this playlist
Great sir ❤🎉
Thanks Bhai ❤❤❤
Excellent explanation ❤❤❤
Superb Sir 🎉
Well explained brother.
thanks bro please subscribe us for more content to come
Quality education brother ❤
Bro please continue your vedios
please subscribe more videos are coming
DSA and other ppl k video chahiy
Nice ❤
Thanks Bhai aap pehle kiu nhi mile😅
super explaination.. but please tell me the name of this theme of your vs code.
Brother make a MERN stack project's ❤
👍👍
Is pyr ko Kia naam do 😂 Acha smjaya ap ny sir ❤
Bhai aap kahan ho 9 mahine se ek video upload
nhi ki
❤
DSA bh parhaye
pdf mil skta h kya notes k?
ok
can we do this useing contructor :
here it is :
class Vehicle{
double price;
double mileage;
String color;
void show(){
System.out.println("price: "+price);
System.out.println("mileage: "+mileage);
System.out.println("color: "+color);
}
}
class Car extends Vehicle{
int tires;
String fuelType;
String brand;
boolean sunRoof;
public Car(String Brand,double Price,double Mileage,String Color,int Tires,String fType,boolean sunroof){
this.brand = Brand;
this.mileage = Mileage;
this.color = Color;
this.tires = Tires;
this.fuelType = fType;
this.sunRoof = sunroof;
this.price = Price;
}
public void printVehicleData(){
System.out.println("Brand: "+brand);
System.out.println("Price: "+price);
System.out.println("mileage: "+mileage);
System.out.println("color: "+color);
System.out.println("Fuel type: "+fuelType);
System.out.println("Tires: "+tires);
System.out.println("sunRoof present or not: "+sunRoof);
}
}
public class inheritance2 {
public static void main(String[] args) {
Car car1 = new Car("Tata",1500000,30,"Red",4,"Diesel",true);
car1.printVehicleData();
}
}
DSA bh parhaye