AP Computer Science A - Unit 9: Inheritance

Sdílet
Vložit
  • čas přidán 11. 07. 2024
  • Study guide and exam review for Unit 9: Inheritance
    APCSA curriculum in Java.
    ap csa unit 9
    ➡️ Great AP CSA Exam Review Book: amzn.to/3RGN8ii ⬅️
    🎧🚀 Fun Sci-Fi Audiobook For Educators: amzn.to/3TItymu 🪐🎧
    0:00 Introduction
    0:22 Part 1 - Inheriting Methods
    4:22 Part 2 - Overriding Methods
    7:24 Part 3 - Calling Superclass Methods
    11:39 Part 4 - Accessing Private Fields
    13:31 Part 5 - Polymorphism
    17:47 Part 6 - Constructors in Standalone Methods
    22:57 Part 7 - Calling Constructors in a Superclass
    26:39 Part 8 - Passing Data to a Superclass Constructor
    30:47 Conclusion
    Also, check out the College Board Advanced Placement AP Daily Live Review Session.
    #Java #JavaTutorial #APComputerScienceA

Komentáře • 49

  • @BillBarnum
    @BillBarnum  Před 3 měsíci

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

  • @michaellai872
    @michaellai872 Před 2 měsíci +22

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

  • @theonlineasian2617
    @theonlineasian2617 Před 3 měsíci +16

    This Channel is saving me in AP CSA

  • @mr.sujithgamingyt507
    @mr.sujithgamingyt507 Před 2 měsíci +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 Před 4 měsíci +2

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

  • @PancakeTiger358
    @PancakeTiger358 Před 2 měsíci +4

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

  • @byhealer
    @byhealer Před 4 měsíci +2

    This is great!

  • @bluesealol
    @bluesealol Před 2 měsíci

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

  • @jiohseo650
    @jiohseo650 Před 2 měsíci +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  Před 2 měsíci +1

      Glad it helped! Good luck on the test!

  • @ahmedhazem4721
    @ahmedhazem4721 Před 3 měsíci +2

    i liked the pace!

  • @raspberrygamer9675
    @raspberrygamer9675 Před 2 měsíci +1

    Great video!

  • @Soko..
    @Soko.. Před 4 měsíci +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  Před 4 měsíci +1

      Specifically, what are you trying to do?

  • @everythingcoveredff890
    @everythingcoveredff890 Před 2 měsíci

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

  • @FrenchFries879
    @FrenchFries879 Před 2 měsíci +5

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

  • @up_to_a_million
    @up_to_a_million Před 2 měsíci

    The pace was about right

  • @sandeeprachapudi
    @sandeeprachapudi Před 4 měsíci

    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  Před 4 měsíci

      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.

  • @joekeays
    @joekeays Před 4 měsíci +1

    great work!

  • @lotax-jb3ot
    @lotax-jb3ot Před 2 měsíci

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

  • @gash539
    @gash539 Před 4 měsíci +1

    good video

  • @savagebhuvan6279
    @savagebhuvan6279 Před 4 měsíci +1

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

    • @BillBarnum
      @BillBarnum  Před 4 měsíci +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 Před 4 měsíci +1

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

    • @BillBarnum
      @BillBarnum  Před 4 měsíci +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 Před 2 měsíci +1

      @@savagebhuvan6279 Princeton is too weirdly worded; not straightforward

    • @savagebhuvan6279
      @savagebhuvan6279 Před 2 měsíci

      @@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.

  • @xelzoid
    @xelzoid Před 2 měsíci +1

    An hour before the exam

  • @samuelatack5294
    @samuelatack5294 Před 4 měsíci +2

    Why the @ before Override?

    • @BillBarnum
      @BillBarnum  Před 4 měsíci +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 Před 4 měsíci

      @@BillBarnum ok thanks

  • @Zappz2000x
    @Zappz2000x Před 2 měsíci

    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  Před 2 měsíci +2

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

  • @Clipzyy9401
    @Clipzyy9401 Před 2 měsíci +2

    10 min til the test wish me luck lolololol

  • @sreehanadigopula1904
    @sreehanadigopula1904 Před 2 měsíci

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

  • @Johnweely
    @Johnweely Před 2 měsíci

    1 hours before exam I'm cooked 😢