Java Classes and Objects Tutorial | How to Create and correctly use Classes | OOP in Java #1

Veröffentlicht am: 23 Mai 2020
auf dem Kanal: Java Coding Community
1,121
36

Java Classes and Objects Tutorial for Beginners. Learn how to create and use Classes in Java programming Language.

Welcome everyone to Java Coding Community. In today's tutorial I will be explaining the basics of Object Oriented Programming in Java. Introduction to Classes and Objects and also explaining the private and public keywords. So lets just right into it.

A class is a collection of
• fields – if you are new to Java, fields are similar to variables – and those fields hold some data
• And methods that work with those values
The most important thing to know is that they define a new data type – this might be confusing but yes, in Object Oriented Programming you can create your own Data Types.

So, a class is a Data Type, but the Class Object is it's value.

So a class is like a blueprint, in it you create a model. An instance of that blueprint is called an object.

Let's demonstrate this on an example. We will be modeling a Car.


Follow me on Instagram: instagram.com/javacodingcommunity
Find my Projects: https://github.com/javacodingcommunity/


Auf dieser Seite können Sie das Online-Video Java Classes and Objects Tutorial | How to Create and correctly use Classes | OOP in Java #1 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Java Coding Community 23 Mai 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,121 Mal angesehen und es wurde von 36 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!