Paper 4 Question OOP With Text Files

Поділитися
Вставка
  • Опубліковано 28 вер 2024
  • In this video we take a look at an OOP question and this time dealing with text files as well as an array of objects! Check out the video to sharpen your OOP skills which is a popular topic that shows up on Paper 4!
    If you find this video helpful make sure to give it a thumbs up and subscribe to help the channel grow. As always, more videos are on the way!

КОМЕНТАРІ • 15

  • @reflectmirror6371
    @reflectmirror6371 4 місяці тому +1

    THANKKK YOU ☺

    • @erbcomputerscience
      @erbcomputerscience  4 місяці тому +1

      You're welcome! Hope it helps!

    • @reflectmirror6371
      @reflectmirror6371 4 місяці тому

      @@erbcomputerscience Btw , i and many of my friends stumbled upon your videos thanks to my school. Whenever heavy rain hits and disrupts our routine, our teachers turn to your videos to catch us up on what we missed. It's become our way of making up for lost time during these rainy spells.

    • @erbcomputerscience
      @erbcomputerscience  4 місяці тому +2

      Thank you. That means a lot and makes me happy to hear it! Glad it helps you all out!

  • @fidgetspinner32510
    @fidgetspinner32510 4 місяці тому

    Hi Sir! Could you do more programs in Java?

  • @LakshBuldan
    @LakshBuldan 4 місяці тому

    hey could you work out more oop questions with files please

    • @erbcomputerscience
      @erbcomputerscience  4 місяці тому +1

      I would love to but unfortunately I have run out of time. I am spending the remaining days meeting with my students and answering questions they have after school hours. I am sorry and wish I had the time to do this before the exam. If by some miracle or by some chance I can I will do my hardest to get this done but it is not a guarantee. Again, I am sorry.

  • @kingzmash9124
    @kingzmash9124 4 місяці тому

    This is what I needed, thank you so much!!!

  • @reflectmirror6371
    @reflectmirror6371 4 місяці тому

    Hello sir, I have a question, you passed Byref PicNumber as a parameter but can't we just use the value returned by the function in the main program?
    Thanks

    • @erbcomputerscience
      @erbcomputerscience  4 місяці тому +1

      Good question. We must pass the value down to the function and it could work by ByVal or ByRef since the return value is assigned to PicIndex in Sub Main. We must pass the value, because if we do not then we would have to declare that variable and when doing that it would have a starting value of 0. Since it is a local variable within the function, if we do not pass the value every time the function is visited it would have a starting value of 0. Now in this program it is ok because we only call it 1 time. If we had to call the function multiple times we would want to make sure we had the value updated so we know where we are in the array for our objects to be created. We want to make sure we are at the next available index. Does that make sense?

    • @reflectmirror6371
      @reflectmirror6371 4 місяці тому

      @@erbcomputerscience It does thanks.

  • @nahalfatima123
    @nahalfatima123 4 місяці тому

    Any predicted questions for m/j/24?

    • @erbcomputerscience
      @erbcomputerscience  4 місяці тому +1

      I would say for Paper 3 I would expect Mantissa and Exponent for sure. For some reason that is always a popular question. I am thinking Mantissa & Exponent, BNF, RPN, Big O Notation and the 4 layers of data transmission. I would like to see some Boolean Algebra with KMaps but that is sometimes hit or miss. For Paper 4 I know writing to a file will be on there because it always has been, OOP that could include: polymorphism, inheritance, overloading, overriding or a basic question with just 1 class. An ADT such as a stack, queue, linked list or binary tree will also be included because they usually are. Last year a linear search (surprising since it is A Level) had to be coded and I think this year I would expect either a recursive binary search or a bubblesort or insertion sort with a 2D array. This all of course is my opinion and I hope I am right but only time will tell. We'll all find out in the next couple of weeks! Good luck to you on your exams!

    • @arthurleywin2549
      @arthurleywin2549 3 місяці тому

      @@erbcomputerscienceYou were right man