Introduction to Java Programming: Lesson 4 - Classes & Objects

Publicado el: 17 octubre 2023
en el canal de: WakeupDev
88
4

This lesson in Java tutorial course introduces you to classes and objects.

Like every other programming language such as C#, C++ and PHP that make use of OOP (Object Oriented Programming) concepts, classes and objects in Java are used to structure data

Some of the major highlights in this video are:

What is a class and an object?
The difference between a class and an object
How to create an instance of a class in Java
How to request for users inputs in your application - Let your app interact with your users
Field variables and methods in Java
Returning values from methods
Wrapper classes in Java and how to use them in converting reference values to primitive values
Operators in Java
Meaning of UML diagrams and how to represent a class with a UML diagram

0:00 Brief Introduction
2:00 Objects in Java
4:20 Creating our bank account class
7:38 Using strings to save phone numbers instead of int
10:07 Creating an instance of the class bank account
11:28 Default values for variables of different data types
13:12 Modifying the field variables in class Main
14:28 Requesting for a user's input with the Scanner class
15:48 Importing classes from the JDK
18:21 Requesting for a user's input with the Scanner class
22:08 Converting from a String to primitive values
23:10 Wrapper classes
25:30 Cleaning up our code - requesting details before instantiating objects
28:33 Using methods in our BankAccount class
30:14 Static methods in Java
34:48 Manipulating field variables in Java
36:11 Operators - Focus on Arithmetic & Assignment operators
38:50 Division - quotient vs remainder
42:28 Modifying our account balance in method deposit
44:38 Method return type
49:10 Problems with our application
50:21 UML diagrams

We continue to create a simple bank application that enables users register new accounts


En esta página del sitio puede ver el video en línea Introduction to Java Programming: Lesson 4 - Classes & Objects de Duración hora minuto segunda en buena calidad , que subió el usuario WakeupDev 17 octubre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 88 veces y le gustó 4 a los espectadores. Disfruta viendo!