AP Computer Science A - Unit 9: Inheritance

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024

Комментарии • 49

  • @BillBarnum
    @BillBarnum  6 месяцев назад

    ➡ Great AP CSA Exam Review Book: amzn.to/3RGN8ii ⬅
    🎧🚀 Fun Sci-Fi Audiobook For Educators: amzn.to/3TItymu 🪐🎧

  • @theonlineasian2617
    @theonlineasian2617 7 месяцев назад +16

    This Channel is saving me in AP CSA

  • @mr.sujithgamingyt507
    @mr.sujithgamingyt507 5 месяцев назад +3

    thank you so much man i am struggling apcsa since starting of the semester but after watching your videos i made feel so easy and i have my test tomorrow

  • @fatimahadi2210
    @fatimahadi2210 7 месяцев назад +2

    I love all of your unit videos, you’re the main reason I’m passing csa right now!!!!

  • @michaellai872
    @michaellai872 5 месяцев назад +21

    2hours before the exam and im still trying to cram the whole course.🤣

  • @Trzntxn
    @Trzntxn 5 месяцев назад +4

    Great video! Wish I found these back in the first semester.

  • @jiohseo650
    @jiohseo650 5 месяцев назад +1

    This video was so useful in my preparation for this year’s ap exam!! I had a lot of troubles with understanding the inheritance part but after watching your video I was able to understand the concept clearly. Thank you so much for such a helpful video and keep up on uploading your wonderful lectures! ☺️

    • @BillBarnum
      @BillBarnum  5 месяцев назад +1

      Glad it helped! Good luck on the test!

  • @Soko..
    @Soko.. 8 месяцев назад +1

    Hi Mr. Bill I have been using your alice 3 tutorials to get through the AP Computer Science Principles class I have bee taking and they have been extremely helpful. I wanted to ask you a specific question on arrays and user input. I have only been able to demonstrate and figure out one way to incorporate user input in an array. If you can answer what are some ways you can incorporate user input into an array. Thank you so much for the help and I will keep using your videos to get me through AP Computer Science next semester.

    • @BillBarnum
      @BillBarnum  8 месяцев назад +1

      Specifically, what are you trying to do?

  • @bluesealol
    @bluesealol 5 месяцев назад

    Your videos are amazing. I understand everything so much clearer now.

  • @lotax-jb3ot
    @lotax-jb3ot 5 месяцев назад

    in 16:18, could you still call controlTemp with super(controlTemp())?

  • @byhealer
    @byhealer 7 месяцев назад +2

    This is great!

  • @ahmedhazem4721
    @ahmedhazem4721 6 месяцев назад +2

    i liked the pace!

    • @BillBarnum
      @BillBarnum  6 месяцев назад

      Thanks for the feedback.

  • @everythingcoveredff890
    @everythingcoveredff890 5 месяцев назад

    2 Hours left y’all, can’t wait to start studying!

  • @savagebhuvan6279
    @savagebhuvan6279 7 месяцев назад +1

    If you know all this will you be good to go for at least Mcq on inheritance on the AP exam.

    • @BillBarnum
      @BillBarnum  7 месяцев назад +1

      I would recommend doing some practice questions to gauge your readiness. My favorite book is Barron's AP Computer Science A by Roselyn Teukolsky

    • @savagebhuvan6279
      @savagebhuvan6279 7 месяцев назад +1

      @@BillBarnum what about Princeton review? Is the 2023 version fine?

    • @BillBarnum
      @BillBarnum  7 месяцев назад +1

      @@savagebhuvan6279
      I haven't looked at the Princeton Review book recently, but there haven't been any meaningful changes in the curriculum since 2023.

    • @itzwildguy
      @itzwildguy 5 месяцев назад +1

      @@savagebhuvan6279 Princeton is too weirdly worded; not straightforward

    • @savagebhuvan6279
      @savagebhuvan6279 5 месяцев назад

      @@itzwildguy I mean I'm doing the practice tests on Princeton and the explanations seem alright to me. If anything people r telling me Barron's explanations and notes are too vague.

  • @raspberrygamer9675
    @raspberrygamer9675 5 месяцев назад +1

    Great video!

  • @sandeeprachapudi
    @sandeeprachapudi 7 месяцев назад

    At 10:00 how does kitt.applybrakes(); call the subclass SelfDrivingCar method applyBrakes();? Shouldn't CountryRoad be a subclass of SelfDrivingCar to do something like that?

    • @BillBarnum
      @BillBarnum  7 месяцев назад

      Typically when we create an instance of a class (e.g. Car, SelfDrivingCar, etc.) we do it in a class (e.g. CountryRoad) that ISN'T in an inheritance relationship with the object's class.
      For example, if I have a Zoo class, in the main method of Zoo, I might create a Tiger object. Tiger and Zoo will have no inheritance relationship.

  • @up_to_a_million
    @up_to_a_million 5 месяцев назад

    The pace was about right

  • @Zappz2000x
    @Zappz2000x 5 месяцев назад

    How does the super keyword work if there are multiple overridden methods?
    For example:
    Class #1 has a method, let's say "makeHappy()"
    Class #2 extends Class #1 and also has a method "makeHappy()"
    Class #3 extends Class #2 and ALSO has "makeHappy()"
    If Class #4 extends Class #3 and calls "super.makeHappy()" would it return Class #3's or Class #1's? (and also can you call a specific class's method instead of just relying on the super word?)
    If this is unclear, let me know and I'll try to reword it- thanks in advance!

    • @BillBarnum
      @BillBarnum  5 месяцев назад +2

      If you called super.makeHappy() from Class4, it would call the version in Class3.

  • @FrenchFries879
    @FrenchFries879 5 месяцев назад +5

    Tbh i still didnt get anything and i have a chapter test tmmrw 😢😭😭

  • @samuelatack5294
    @samuelatack5294 7 месяцев назад +2

    Why the @ before Override?

    • @BillBarnum
      @BillBarnum  7 месяцев назад +2

      Good question. It does two things:
      1. It lets other programmers know that there is another version of the method in the superclass that they can call with super.
      2. It causes Java to check to see if the method is really overriding another method and returns an error if it isn’t. It’s not unusual to make a small mistake and not realize that you aren't really overloading a method.

    • @samuelatack5294
      @samuelatack5294 7 месяцев назад

      @@BillBarnum ok thanks

  • @xelzoid
    @xelzoid 5 месяцев назад +1

    An hour before the exam

  • @joekeays
    @joekeays 7 месяцев назад +1

    great work!

    • @BillBarnum
      @BillBarnum  7 месяцев назад

      Thanks, Mr. Keays!

  • @gash539
    @gash539 8 месяцев назад +1

    good video

    • @BillBarnum
      @BillBarnum  7 месяцев назад +1

      Thanks for the visit

  • @Clipzyy9401
    @Clipzyy9401 5 месяцев назад +2

    10 min til the test wish me luck lolololol

  • @sreehanadigopula1904
    @sreehanadigopula1904 5 месяцев назад

    3 hours left for the test and i still don't know unit 9-10

  • @Johnweely
    @Johnweely 5 месяцев назад

    1 hours before exam I'm cooked 😢