#35 Super Keyword in Java | In Tamil | Java Tutorial Series | Error Makes Clever

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

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

  • @GOKULsince2005
    @GOKULsince2005 3 месяца назад +3

    Waiting for all other videos bro❤

  • @Snekavarsha-sx3no
    @Snekavarsha-sx3no 3 месяца назад +4

    brother please next vidoes seekiram upload pannunga naa unga video kaka tha rompa naal wait panne inheritance ku aprm en class la nadathurathu suthama puriyala ippo exams vachutanga java la naa unga videos sa nambi tha irukke

  • @PivotPlay777
    @PivotPlay777 2 месяца назад +1

    Director "PARTHIBAN " VOICE

  • @MohanS-ev3we
    @MohanS-ev3we 3 месяца назад +2

    Hi bro core java one video podunga bro

  • @Prakash-qg3yc
    @Prakash-qg3yc 3 месяца назад +2

    Bro one doubt you're creating object for class Employee and passing args as John, now here is the confusion starts for me,now the John parameter will straightly assigned in super(name(John)); like this, or the John parameter will be assigned in Employee (String name(John)) and further it goes to super ?
    If the the employee object directly assign its parameter (John) to super (name(John)) then what will be the value of Employee class constructor Employee (String name(?)).
    Please reply for this comment,if anyone knows please do reply for this comment
    Thank you

    • @SURYAPRAKASH-tp6bf
      @SURYAPRAKASH-tp6bf 3 месяца назад +1

      Yes, 2nd one.. the John parameter will be assigned in Employee (String name(John)) and further it goes to super

    • @SadiqsChannel
      @SadiqsChannel Месяц назад

      The name property belongs to the Person class, the Employee constructor receives the name and passes it to super class property name.
      Assume that the Employee class also has a property called name, then in the constructor of Employee, you code like
      super(name);
      this.name=name;
      This means the name property is first assigned to Employee then passed to Person

  • @PoornimaManogaran-24
    @PoornimaManogaran-24 3 месяца назад +1

    I have one doubt....Why we have to use super.makesound()? We had already used d1.makesound() this also does the same.🤔.Pls reply me whether I'm correct or not?

  • @Binge466
    @Binge466 3 месяца назад

    Upload videos often dude

  • @indirajithl1866
    @indirajithl1866 3 месяца назад

    while inheriting parent class(Person) from child class (Employee) how many objects would be created in the heap?

    • @SadiqsChannel
      @SadiqsChannel Месяц назад

      One object, that contains both Person and Employee fields (member variables)

  • @sathishkraja2130
    @sathishkraja2130 3 месяца назад

    Bro next video poduga please

  • @Mr.Aravindhan17
    @Mr.Aravindhan17 5 дней назад

    package pro2;
    class Person {
    String name;
    Person(String name) {
    this.name = name;
    System.out.println(name);
    }
    }
    class Employee extends Person {
    int Employeeid;

    Employee() {
    super("Default Name");
    System.out.println("test");
    }
    void display() {
    System.out.println("Detail of employee");
    }
    }
    public class Mainclass2 {
    public static void main(String[] args) {
    // Person p1 = new Person("vijay");
    Employee e1 = new Employee();
    e1.display();
    }
    }

  • @Vikram.veeran
    @Vikram.veeran 3 месяца назад +1

    ❤❤

  • @RAMUTAMILAN837
    @RAMUTAMILAN837 3 месяца назад

    Hi

  • @user-name-is-Arasu
    @user-name-is-Arasu 3 месяца назад

    Elarum indha run pani pathinagala enaku varala ungaluku?

  • @SATHISHKUMAR-cs3kv
    @SATHISHKUMAR-cs3kv 2 месяца назад +2

    Bro enaku 1st code laye error varudhu I mean Animal and Dog code laye error varudhu but na crt ah than code potten
    error: can't find (String []) method in class :Animal epdi varudhu

    • @user-xk6qz9xi3q
      @user-xk6qz9xi3q Месяц назад

      Same error I faced😢 for past one week

    • @wssgaming7050
      @wssgaming7050 Месяц назад

      Bro main class ahh first la potuga error clear akirum

    • @dragogaming_redmi
      @dragogaming_redmi Месяц назад

      Main Ilene , programku enge start pannumnu theriyathu