Java Bangla Tutorials 129 : Inheriting Private Member | setters, getters

preview_player
Показать описание
➡️ In this video, I will discuss how to inherit members using a setter and getter when inheriting any class.
⭐️ Video Contents ⭐️
⌨️ (00:00) Intro
⌨️ (00:11) Inheriting Private Member
⌨️ (10:50) Outro

🛑 Web development? Checkout following playlists :

🛑 Programming languages? Check out the following playlists:

🛑 Android development? Check out the following playlists:

🛑 HSC Students? Are you worried about ICT? I have created 377 videos for you. check out the following playlists-

🛑 CSE Students? Checkout following playlists :

🛑 MS Office? Trying to learn MS Office to improve your skill? Checkout following playlists :

#java #anisul_islam #java_bangla_tutorial #web_development #bangla_web_development #andorid #javaprogramming #javatutorial #bangla_tutorial #java_anisul_islam
Рекомендации по теме
Комментарии
Автор

Bangla video tutorial is more efficient than other languages for me . Thanks via

md.ashrafulislamshawon
Автор

I Watched 110 Videos in 3 Months.. Love you

mainpurpose
Автор

i have been spellbound to show ur tactics how u made these tutorials dexterously in the easiest way . pray for u cordially man <3

mahikhan
Автор

please make some videos on java output tracing if possible

sumayachoya
Автор

Good tutorial.
Please make tutorial on data structure.

setukanti
Автор

Vai, java r output tracing nia akta video banale sobai upokar petam...

safirsemon
Автор

nice video series


by the way, who is SUPARNA?
please reply

shifaabid
Автор

hi bro, you are just awesome. I regularly watch your tutorial. I want to know about, what difference between default and public keyword? when use public and when keep it default? hope you understand ,what do I want to ask.
thank you so much. we want more tutorials.

Tit_fortat
Автор

package Inhertance_method;


public class Person {

String name;
int age;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public int getAge() {
return age;
}

public void setAge(int age) {
this.age = age;
}


}
package Inhertance_method;


public class Teacher extends Person {
String quali;

public String getQuali() {
return quali;
}

public void setQuali(String quali) {
this.quali = quali;
}


}

package Inhertance_method;


public class Inhertest {
public static void main(String[] args)
{
Teacher p1=new Teacher ();
p1.setName ("Raedbeg");
p1.setAge (3454);
p1.setQuali ("msc in cse");



}

}

only_rashed
Автор

psvm লিখলে যে পুরাটা চলে আসে এটা কিভাবে করেন??

shohan
Автор

package objectorientedprogramming;

public class Person {

private String name;
private int age;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public int getAge() {
return age;
}

public void setAge(int age) {
this.age = age;
}

}
package objectorientedprogramming;

public class Student extends Person {

private int id;

public int getId() {
return id;
}

public void setId(int id) {
this.id = id;
}

void display() {
System.out.println("Name : " +getName());
System.out.println("Age : " +getAge());
System.out.println("Id : " +getId());
System.out.println("\n");
}

}
package objectorientedprogramming;

public class TestMethod {

public static void main(String[] args) {
Student s1 = new Student();
s1.setName("Elora Barua");
s1.setAge(20);
s1.setId(100);
s1.display();


Student s2 = new Student();
s2.setName("Priya");
s2.setAge(20);
s2.setId(101);
s2.display();


Student s3 = new Student();
s3.setName("Samin");
s3.setAge(20);
s3.setId(102);
s3.display();
}

}

elorabarua
Автор

package oop;



public class Person1 {
private String name;
private int age;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public int getAge() {
return age;
}

public void setAge(int age) {
this.age = age;
}


}


package oop;


public class Teacher1 extends Person1{
private String qualification;

public String getQualification() {
return qualification;
}

public void setQualification(String qualification) {
this.qualification = qualification;
}

void display(){

System.out.println(getAge());

}


}


package oop;


public class PersonTest1 {
public static void main(String[] args) {
Teacher1 t1 = new Teacher1();
t1.setName("Anisul Islam");
t1.setAge(28);
t1.setQualification("BSc in CSE");
t1.display();
}
}

tomabanik
Автор

package inheritance;


public class Person {
private String name;
private int age;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public int getAge() {
return age;
}

public void setAge(int age) {
this.age = age;
}


}

package inheritance;


public class Teacher extends Person {
private String qualification;

public String getQualification() {
return qualification;
}

public void setQualification(String qualification) {
this.qualification = qualification;
}
void displayinformation(){

System.out.println(getAge());

System.out.println();
}
}

package inheritance;


public class Test {
public static void main(String[] args) {
Teacher t1 = new Teacher();
t1.setName("Anisul Islam");
t1.setAge(28);
t1.setQualification("BSc in CSE");
t1.displayinformation();

Teacher t2 = new Teacher();
t2.setName("Aminul Islam");
t2.setAge(30);
t2.setQualification("BSc in CSE");
t2.displayinformation();



}

}

sitanath
Автор

Good tutorial.
Please make tutorial on data structure.

setukanti