Intro to Classes and Objects: Coding Tutorials by Umar Khan

Опубликовано: 26 Февраль 2022
на канале: Coding Tutorials by Umar Khan
36
4

In this video of the series, we will introduce classes and objects. You may have heard about classes and object-oriented programming (OOP), and the basic idea is that we can write more complex and powerful programs by mimicking the real world in the logic of programming.

For example, with the OOP paradigm, you could create a Player class for a video game. Then, whenever you create an object of the player class, that object will automatically behave in ways that all players behave. When the game controller is pushed up, for instance, the player is animated a certain way and its position on the screen is advanced in the direction defined by an upward movement on the controller.

There is much to learn about objects and classes, and this video will get us started. This is an incredibly important and powerful topic in programming that is applicable to many programming languages, such as Java, C#, C++, Swift, Kotlin, Python, and many more.

Not all programming languages are object-oriented, which I will explain in the video (C is a good example). But Java is, and we are beginning with Java in this video series, so, we will be able to learn about classes and objects as we build applications.

Finally, the code you will write in this video is also available in final form at the link below. If you accidentally delete the code you wrote or it doesn't work for some reason, you can download the three .java files at the link to create your project again (Point.java, Rectangle.java, and BuildRectangle.java).

Note that I will use the files at the link below as the starting point for the next video. Enjoy, post comments, and have fun!

---------------------------------------

https://github.com/u-khan-dev/java-cl...


На этой странице сайта вы можете посмотреть видео онлайн Intro to Classes and Objects: Coding Tutorials by Umar Khan длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Coding Tutorials by Umar Khan 26 Февраль 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 36 раз и оно понравилось 4 зрителям. Приятного просмотра!