SystemVerilog Classes 5: Polymorphism

Поділитися
Вставка
  • Опубліковано 31 січ 2025

КОМЕНТАРІ • 5

  • @AxElKo440
    @AxElKo440 5 років тому +2

    Awesome series for repeating basic concepts. Good job

  • @abletangdkable
    @abletangdkable 2 роки тому +1

    short, clear,accurate~!

  • @poojavs8634
    @poojavs8634 5 років тому

    good explantion. very good job

  • @VikramBamel
    @VikramBamel 4 роки тому

    Instead of recovering the sf object back from parent class, why not just use the already existing sf handle? Or, why not just copy sf handle to sf2? What’s the real advantage of casting here?

    • @naman-sharma
      @naman-sharma 2 роки тому

      As mentioned in the later part of the video, casting is useful when we have various subclasses that inherit from the same parent class. For example, when we dynamically allocate a subclass instance in parent class handle array, we store different subclass instance in the parent class handle and then use cast to detect later in the code which subclass instance is stored in the parent handle. This is just one of the examples.