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

preview_player
Показать описание
In this video, We will explore the super keyword and show you how to use it effectively.

We'll start by learning how to call and use superclass constructors, mastering how to properly invoke constructors from parent classes.

Next, we’ll be moving into accessing and overriding superclass methods, and learning how to efficiently work with methods from super classes.

Finally, we’ll cover how to use superclass fields, and discover how to access and manage fields inherited from parent classes.

Java in Tamil

Join our 700K+ Instagram community

#javaprogramming #javatutorial #superkeyword #superclassconstructors #parentclasses
Рекомендации по теме
Комментарии
Автор

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

Snekavarsha-sxno
Автор

Hi bro core java one video podunga bro

MohanS-evwe
Автор

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

Mr.Aravindhan
Автор

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

indirajithl
Автор

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

Prakash-qgyc
Автор

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?

PoornimaManogaran-
Автор

Elarum indha run pani pathinagala enaku varala ungaluku?

name-is-Arasu
Автор

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

SATHISHKUMAR-cskv
join shbcf.ru