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

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 25

  • @MohamedMukshidh
    @MohamedMukshidh 24 дні тому

    The inheritance type in this code is multilevel inheritance and hierarchical inheritance

  • @GOKULsince2005
    @GOKULsince2005 5 місяців тому +4

    Waiting for all other videos bro❤

  • @Mr.Aravindhan17
    @Mr.Aravindhan17 2 місяці тому +1

    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();
    }
    }

  • @Snekavarsha-sx3no
    @Snekavarsha-sx3no 5 місяців тому +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 4 місяці тому +1

    Director "PARTHIBAN " VOICE

  • @MohanS-ev3we
    @MohanS-ev3we 5 місяців тому +2

    Hi bro core java one video podunga bro

  • @Moviesxw
    @Moviesxw Місяць тому

    c++ video podunga bro

  • @indirajithl1866
    @indirajithl1866 5 місяців тому

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

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

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

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

    Upload videos often dude

  • @Prakash-qg3yc
    @Prakash-qg3yc 5 місяців тому +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 4 місяці тому +1

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

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

      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 4 місяці тому +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?

  • @Vikram.veeran
    @Vikram.veeran 5 місяців тому +1

    ❤❤

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

    Bro next video poduga please

  • @RAMUTAMILAN837
    @RAMUTAMILAN837 5 місяців тому

    Hi

  • @SATHISHKUMAR-cs3kv
    @SATHISHKUMAR-cs3kv 3 місяці тому +3

    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 3 місяці тому

      Same error I faced😢 for past one week

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

      Bro main class ahh first la potuga error clear akirum

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

      Main Ilene , programku enge start pannumnu theriyathu

    • @mageswaran._r_
      @mageswaran._r_ Місяць тому

      Program main function la dhan execution start agum so that main function entha clss la iruko atha name la save pannanum

  • @user-name-is-Arasu
    @user-name-is-Arasu 4 місяці тому

    Elarum indha run pani pathinagala enaku varala ungaluku?