System Verilog Tut 9 | Object Oriented Prog Polymorphism

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

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

  • @akshayshah000
    @akshayshah000 Год назад +1

    Helpful, Thank you so much.

  • @pritamsarkar6370
    @pritamsarkar6370 2 года назад +1

    It's a beautiful explanation, also crisp and clear.🥰

  • @aneequrrahmanmohammed218
    @aneequrrahmanmohammed218 Год назад +1

    splendid thanks bro

  • @nithesh2479
    @nithesh2479 3 года назад +2

    Detailed explanation very good 👍👍

  • @shivaReddy14455
    @shivaReddy14455 2 года назад

    clean and clear explanation

  • @MuhammadShahzad-dx5je
    @MuhammadShahzad-dx5je 3 года назад +2

    very well explained sir!

  • @MukeshKumar-vh6zp
    @MukeshKumar-vh6zp 2 года назад +3

    Only method we can excess

  • @ggwhhbb1822
    @ggwhhbb1822 2 года назад +2

    how polymorphism is used ?

  • @gunjanpandey2585
    @gunjanpandey2585 2 года назад +1

    Please complete the system verilog course🥺

  • @bibhujitpanda450
    @bibhujitpanda450 2 года назад +2

    Can I get the exact definition of Polymorphism

    • @vlsichaps
      @vlsichaps  Год назад

      Polymorphism refers to the ability of a class or object to take on multiple forms. Polymorphism is a key feature of object-oriented programming, and it allows developers to create flexible and reusable code that can be adapted to different situations.
      There are several types of polymorphism...
      Method polymorphism: This refers to the ability of a method to take on different forms depending on the context in which it is used. For example, a method may behave differently depending on the type or number of arguments that are passed to it.
      Overloading: This refers to the ability of a method or function to have multiple definitions with different signatures (i.e., different numbers or types of arguments). Overloading allows developers to create multiple versions of a method or function that can be called depending on the context in which it is used.
      Inheritance: This refers to the ability of a class to inherit properties and behaviors from a parent class. Inheritance allows developers to create a hierarchy of classes that share common characteristics, and it allows them to create more specialized classes that are derived from more general ones.

  • @pankajrathour6449
    @pankajrathour6449 3 года назад +2

    SIRplease provide the code

    • @learningwithchay8549
      @learningwithchay8549 2 года назад

      // Code your testbench here
      // or browse Examples
      //polymorphism
      class a;
      virtual function void print();
      $display("This is Parent class");
      endfunction
      endclass
      class b extends a;
      function void print();
      $display("This is child class");
      endfunction
      endclass
      module main;
      a a1;
      b b1;

      initial begin
      a1=new();
      b1=new();
      a1=b1;
      a1.print();
      b1.print();
      end

      endmodule