Java objects (OOP)

Java objects (OOP)

Bro Code

3 года назад

153,690 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Bro Code
Bro Code - 22.09.2020 21:35

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

public static void main(String[] args) {

Car myCar1 = new Car();
Car myCar2 = new Car();

System.out.println(myCar1.make);
System.out.println(myCar1.model);

myCar1.drive();
myCar1.brake();
}
}
//*******************************************
public class Car {

String make = "Chevrolet";
String model = "Corvette";
int year = 2020;
String color = "blue";
double price = 50000.00;

void drive() {
System.out.println("You drive the car");
}
void brake() {
System.out.println("You step on the brakes");
}
}
//*******************************************

Ответить
shafik khan
shafik khan - 03.11.2023 12:46

your good at codes bro. hands up.

Ответить
Daintyleaf
Daintyleaf - 25.10.2023 06:52

This is gud stuff

Ответить
Kappuchino
Kappuchino - 15.10.2023 02:35

Jeez I was trying to wrap my head around this for awhile and you explained it so well! Thanks bro

Ответить
QualityPluG
QualityPluG - 10.10.2023 17:21

Your best

Ответить
berry
berry - 05.10.2023 16:28

thank you so much! been watching ur sql and css series. Now onto java and python for interview revision. You don't know how much you've helped me <3

Ответить
sarah gramit
sarah gramit - 01.10.2023 22:29

thank u

Ответить
DCB
DCB - 18.09.2023 11:00

I mean!! Where have you been my whole 2 month semester!! Thaaank you!! This really clearify everything!

Ответить
CodeWithTamim
CodeWithTamim - 15.09.2023 19:26

Broooooo🎉

Ответить
krutika barad
krutika barad - 14.09.2023 05:27

easy. thank you :)

Ответить
George Soares
George Soares - 14.09.2023 01:12

Thanks for the video, bro!

Ответить
Tim Young
Tim Young - 23.08.2023 14:21

You are awesome
Love from fiji

Ответить
Vüqar İsmayılov
Vüqar İsmayılov - 22.08.2023 14:29

Your videos are more useful than udemy courses. Thanks

Ответить
Roman Kolosov
Roman Kolosov - 13.08.2023 21:49

thanks, a real good stuff!

Ответить
Animedark
Animedark - 09.08.2023 16:37

You surpassed my tutor 😊

Ответить
Aimable Ndanguza
Aimable Ndanguza - 06.08.2023 21:19

clear

Ответить
A-1020
A-1020 - 28.07.2023 11:28

Your tutorials are truly helpful for me in becoming a successful software engineer. Thank you for providing such valuable resources!

Ответить
RobinGloryVideo
RobinGloryVideo - 25.07.2023 18:03

Thanks you !!
Java OOP has been challenging to me a lot this week. I am more than thankful when I see your channel and the content of this video. Thanks

Ответить
Yuvan Surya
Yuvan Surya - 25.07.2023 17:07

thx for the video bro!

Ответить
aiueo
aiueo - 19.07.2023 06:23

gg bang, mantappp

Ответить
Carl Pilongo
Carl Pilongo - 19.07.2023 06:01

what does void do?

Ответить