Introduction to Java Programming: Lesson 4 - Classes & Objects

Veröffentlicht am: 17 Oktober 2023
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Introduction to Java Programming: Lesson 4 - Classes & Objects mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer WakeupDev 17 Oktober 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 88 Mal angesehen und es wurde von 4 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!