if-else if Statements in Java

Pubblicato il: 11 febbraio 2025
sul canale di: Professor Tim at EMCC
37
0

I can remember when of my programs were just tiny little applications, full of hope and dreams--but unable to make anything but the most basic decisions. But now they're like obnosxious teenagers, and they're no longer satisfied with simple yes-or-no answers. They crave nuance, they demand options. Eventually, you have to let your programs go out and make tricky decisions.

This video will show you how to use your newfangled if-else expertise to encapsulate your objects a little better, but they we'll jump right into if-else if structures that let our code choose from multiple options.

0:00 Intro
1:49 Improving encapsulation
4:25 Setting the gradeLevel field
5:11 Getting the School Type with if-else if
6:54 "Unreachable Code" error
7:49 Constructor
----
This video is part of my course materials for my Object-Oriented Programming Fundamentals course (CIS150AB) at EMCC, and it's intended to accompany a free eBook: https://timmcmichael.github.io/lofi-o...

Playlist:    • Object-Oriented Programming Fundamentals (...  
Files from videos: https://github.com/timmcmichael/EMCCT...

#java #coding #if #ifelse #ifelsestatement #decisions #branching #boolean #logic #oop #encapsulation #constructors #emcc #cis150ab


In questa pagina del sito puoi guardare il video online if-else if Statements in Java della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Professor Tim at EMCC 11 febbraio 2025, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 37 volte e gli è piaciuto 0 spettatori. Buona visione!