Part 8 | Constructors, Inheritance, Polymorphism | Java Programming Tamil Tutorial

Make sure you register for the 100k Coding Challenge!: brototype.com/ta/100k/?ref=yo...
Visit our website: brototype.com/ta
100K Coding Challenge Playlist: • 100k Coding challenge
Know more about 100k coding challenge: • Spend 10 days and neve...
___________________________________________________
Timecode
0:00 Title theme
0:21 Daily Tip
8:50 Winners
9:32 Static Explanation
14:19 Static Sample code
26:46 Three Class” Explanations
29:59 Three Class Sample Code
35:58 Constructor Explanation
40:32 Constructor Sample Code
44:12 This Expalnation
49:00 This Sample code
54:12 Inheritance” Explanation
1:02:01 Inheritance” Sample Code
1:06:24 Multiple Inheritance”
1:09:39 Inheritance Using Constructor"
1:12:47 Inheritance Using Constructor” Sample Code
1:15:10 Method Overloading in Polymorphism”
1:19:04 Method Overriding in Polymorphism”
1:21:59 Super Explanation -
1:25:10 Super Sample Code
1:33:23 String Explanation
1:34:55 Object Bonus Tip
___________________________________________________
This video is part eight video of the series and today we will be discussing the general aspects of programming such as Constructors, Inheritance, and Polymorphism in Java programming.
#100K Coding Challenge is a series of 10 programming tutorial videos in Tamil. It is an initiative by Team Brototype to teach programming in the simplest possible manner across Tamil Nadu and it is completely FREE of cost.
➤ Today's assignment: docs.google.com/document/d/1R...
About us:
Brototype is more than just a KZread channel. We are Kerala's Top community for aspiring techies looking to learn coding and land their dream IT jobs. Our KZread channels provide free programming tutorials and tech videos in regional languages.
We also have a 7-month offline training program called 'Brocamp', where students from any educational background can learn coding in an office environment and pay the fee after placement. We have helped 600+ students get high-paying IT jobs. As a result, we are now focusing on Tamil to reach a wider audience and help more people improve their lives.
For enquiries & updates WhatsApp us to 9995270355
Visit our website: brototype.com/ta

Пікірлер: 54

  • @AkshayaShanmugam-by6is
    @AkshayaShanmugam-by6is Жыл бұрын

    Great session....thank you sir

  • @JeeAspirantshimonsirfan
    @JeeAspirantshimonsirfan Жыл бұрын

    You nailed the concept

  • @magicalworld1230
    @magicalworld1230 Жыл бұрын

    Superb Explaination anna🤲💫

  • @androidtech9811
    @androidtech9811 Жыл бұрын

    Good explanation

  • @cst045
    @cst045 Жыл бұрын

    neega nalla puriyavaikurathuku (ex; function,variables,object,class name)......antha different chalk piece color use pannuringaleyyy....anga iruku anney unga brain...😇

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    ❤️❤️

  • @imranyt7991
    @imranyt7991 Жыл бұрын

    Q.1) public class Assignt { void Checknumber() { System.out.println("Happy Number"); } Assignt(int num){ if(num%2==0) { System.out.println("Even"); }else { System.out.println("Odd"); } } public static void main(String[] args) { System.out.println("Enter a number:"); Scanner s=new Scanner(System.in); int n=s.nextInt(); Assignt a=new Assignt(n); a.Checknumber(); } } Q.2) public class sum { sum(int a){ System.out.println("Addition:"+a); } sum(int a, int b){ int result=(a-b); System.out.println("Subtraction:"+result); } sum(int a, int b, int c){ int result=a*b*c; System.out.println("Multiplication:"+result); } sum(int a, int b, int c, int d){ int result=a/b/c/d; System.out.println("Divition:"+result); } public static void main(String[] args) { sum s=new sum(10); sum s1=new sum(10,20); sum s3=new sum(10,20,30); sum s4=new sum(10,20,30,40); } } Q.3) public class Sum { int ans; int Rectangle(int num1, int num2) { return ans=num1*num2; } int Square(int num) { return ans=num*num; } int Triangle(int num1, int num2,int num3) { return ans=(num1*num2)/num3; } int Circle(int num2) { double d=3.14; return ans=(int)d*(num2*num2); } } public class Result extends Sum{ void DisplayRectangle() { System.out.println("Rectangle:"+ans); } void DisplaySquare() { System.out.println("Square:"+ans); } void DisplayTriangle() { System.out.println("Triangle:"+ans); } void DisplayCircle() { System.out.println("Circle:"+ans); } public static void main(String[] args) { Result s=new Result(); s.Rectangle(10,20); s.Square(20); s.Triangle(10,20,2); s.Circle(10); s.DisplayRectangle(); s.DisplaySquare(); s.DisplayTriangle(); s.DisplayCircle(); } } Name : Imran Contact : 9025472026

  • @balajin8657
    @balajin8657 Жыл бұрын

    .NET Course Please Vro... Thank you Good Explanation.! 😇

  • @user-om6xx3js5h
    @user-om6xx3js5h Жыл бұрын

    Hello sir , YOUR vedio are help for my syllabus please explain about structure , union ,pointer,

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    Thank you, join our Telegram group and ask your doubts there, our team will help you. Join here :brototype.com/ta/100k/?ref=ytdescription

  • @nitheeskumar3027
    @nitheeskumar3027 Жыл бұрын

    Digital marketing cource pathi introduction kutunga anna

  • @rkram590
    @rkram590 Жыл бұрын

    😢 konjam kasttamaga irukkurathu 😅

  • @CIBI
    @CIBI Жыл бұрын

    Finally oops questions giving headache

  • @androidtech9811
    @androidtech9811 Жыл бұрын

  • @sivakumarm2053
    @sivakumarm205310 ай бұрын

    Assignment deleted nu iruku bro. Open aaga maatikidhu??

  • @tamilarasandhayalan8092
    @tamilarasandhayalan8092 Жыл бұрын

    //1.To check number is even or odd public class EvenOdd { EvenOdd(int a){ if (a%2==0){ this.checkNumber(); } else{ System.out.println("The number is odd"); } } public void checkNumber(){ System.out.println("happy number"); } public static void main(String ar[]){ EvenOdd obj = new EvenOdd(168); } } Output: happy number //2.To write a program and calculate the following problems using constructor overload public class Calc { Calc(String str, int a, int b) { if (str == "add") { System.out.println("Addition is " + (a + b)); } else if (str == "subtract") { System.out.println("Subtraction is " + (a - b)); } else { System.out.println("Enter valid arguments to constructor"); } } Calc(String str, double a, double b) { if (str == "divide") { System.out.println("Division is " + (a / b)); } else if (str == "multiply") { System.out.println("Multiplication is " + (a * b)); } else { System.out.println("Enter valid arguments to constructor"); } } public static void main(String ar[]){ Calc c1 = new Calc("add",10,84); Calc c2 = new Calc("subtract",70,35); Calc c3 = new Calc("multiply",80.5,84.3); Calc c4 = new Calc("divide",10.5,5.7); Calc c5 = new Calc("divide",10.5,5); Calc c6 = new Calc("div",10.5,5); } } Output: Addition is 94 Subtraction is 35 Multiplication is 6786.15 Division is 1.8421052631578947 Division is 2.1 Enter valid arguments to constructor //3.To write a program for calculate the following problems and display the result //Sum.java public class Sum { double pi = 3.14; public int Rectangle(int length,int width){ return length * width; } public int Square (int side){ return side * side; } public int Triangle(int base,int height){ return (base * height)/2; } public double Circle (int radius){ return pi*(radius * radius); } } //Result.java public class Result extends Sum { public void displayRectangle(int res) { System.out.println("Area of Rectangle:" +res); } public void displayTriangle(int res) { System.out.println("Area of Triangle:" + res); } public void displaySquare(int res) { System.out.println("Area of Square:" + res); } public void displayCircle(double res) { System.out.println("Area of Circle:" + res); } public static void main(String ar[]){ Result r1 = new Result(); r1.displayRectangle(r1.Rectangle(10,6)); r1.displaySquare(r1.Square(8)); r1.displayTriangle(r1.Triangle(24,55)); r1.displayCircle(r1.Circle(6)); } } Output: Area of Rectangle:60 Area of Square:64 Area of Triangle:660 Area of Circle:113.04 Name:Tamilarasan Contact:9791596659

  • @fogy5909
    @fogy5909 Жыл бұрын

    bro c++ pointers concept ku oru video podunga anna

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    sure

  • @shadow7ff616
    @shadow7ff616 Жыл бұрын

    Bro please Java video podunga

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    Ith java than

  • @_Kishore_001
    @_Kishore_001 Жыл бұрын

    DSA videos upload pandunga sir

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    will do

  • @it-joker2006
    @it-joker2006 Жыл бұрын

    Sir python programming language 😢

  • @mr.strange468
    @mr.strange468 Жыл бұрын

    Unity game development poduga sir pls

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    will do soon.

  • @santoshn961
    @santoshn9616 ай бұрын

    Advance java series podunga bro pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls

  • @rkram590
    @rkram590 Жыл бұрын

    Q.1) public class Assign1 { void checkNumber(){ System.out.println("Happy number"); } Assign1(int num){ if(num%2==0) { System.out.println("Even"); this.checkNumber(); } else { System.out.println("Odd"); } } public static void main(String ar[]) { Assign1 call=new Assign1(10); } } Output: Even Happy number Q.2) public class Cal { Cal(int a){ System.out.println("add: "+(a+50)); } Cal(int a, int b, int c){ System.out.println("sub: "+(a-b-c)); } Cal(double a, double b){ System.out.println("div: "+(a/b)); } Cal(int a, int b, int c,int d){ System.out.println("mul: "+(a*b*c*d)); } public static void main(String[] args) { Cal add=new Cal(10); Cal sub=new Cal(10,20); Cal div=new Cal(10,20,30); Cal mul=new Cal(10,20,30,40); } } Output: add: 60 div: 0.5 sub: -40 mul: 240000 Q.3) public class Sum { double ans; void Rectangle(int length, int width) { ans = length * width; System.out.println("Rectangle Display: "+ans); } void Square (int side) { ans = side * side; System.out.println("Square Display: "+ans); } void Triangle(int base, int height){ ans = 0.5 * base * height; System.out.println("Triangle Display: "+ans); } void Circle (double radius){ ans = Math.PI * radius * radius; System.out.println("Circle Display: "+ans); } } public class Result extends Sum { public static void main(String[] args) { System.out.println("This is Class Result"); } } public class ClassDisplay { Result TotObj=new Result(); void DisplayRectangle() { TotObj.Rectangle(20, 30); } void DisplaySquare () { TotObj.Square(50); } void DisplayTriangle () { TotObj.Triangle(30, 40); } void DisplayCircle () { TotObj.Circle(80.10); } public static void main(String[] args) { ClassDisplay Display=new ClassDisplay(); Display.DisplayRectangle(); Display.DisplaySquare(); Display.DisplayTriangle(); Display.DisplayCircle(); } } Output: Rectangle Display: 600.0 Square Display: 2500.0 Triangle Display: 600.0 Circle Display: 20156.489881358648 Name: Ramkumar Phone:6369528473

  • @whiteheartff6110

    @whiteheartff6110

    Жыл бұрын

    2rd question puriyala bro explain pandraingala

  • @_GT_1_

    @_GT_1_

    7 ай бұрын

    brother 3th program you have use two main method using function that is error are correct for ex; public class main { public static void main(String s[]) { s.o.p("hello!!!!"); } //and then you (is the same )another main function using pannu rathu correct or wrong public static void main(String s[]) { s.o.p("welcome to my business companies"); }

  • @mukeshseenu4026
    @mukeshseenu4026 Жыл бұрын

    please say correct definition of java structure once more

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    Join the Telegram group, our tech support will help you. Join here: brototype.com/ta/100k/?ref=ytdescription

  • @sajithas1193
    @sajithas1193 Жыл бұрын

    1st Q public class Try { void checkNumber(){ System.out.println("Happy number"); } Try(int value){ if(value%2==0) { System.out.println("Even"); this.checkNumber(); } else { System.out.println("Odd"); } } public static void main(String args[]) { Try a=new Try(10); } } 2nd Q public class Calculator { Calculator(int a, int b, int c, int d){ System.out.println("subraction: "+(a-b-c-d)); } Calculator(int a){ System.out.println("addition: "+(a+99)); } Calculator(double a, double b,double c){ System.out.println("divition: "+(a/b)/c); } Calculator(int a, int b){ System.out.println("multiplication: "+(a*b)); } public static void main(String[] args) { Calculator multiplication=new Calculator(3,7); Calculator addition=new Calculator(1); Calculator subraction=new Calculator(60,40,77,100); Calculator divition=new Calculator(4,1,6); } } 3rd Q public class Sum { double Result; void Rectangle(int length, int width) { Result = length * width; System.out.println("Rectangle display: "+Result); } void Square (int side) { Result = side * side; System.out.println("Square display: "+Result); } void Triangle(int base, int height){ Result = 0.5 * base * height; System.out.println("Triangle display: "+Result); } void Circle (double radius){ Result = Math.PI * radius * radius; System.out.println("Circle display: "+Result); } } public class Result extends Sum { public static void main(String args[] ) { } } public class ClassDisplay { Result Object=new Result(); void displayRectangle() { Object.Rectangle(5, 6); } void displaySquare () { Object.Square(77); } void displayTriangle () { Object.Triangle(90, 60); } void displayCircle () { Object.Circle(45.10); } public static void main(String args[] ) { ClassDisplay display=new ClassDisplay(); display.displayRectangle(); display.displaySquare(); display.displayTriangle(); display.displayCircle(); } } Name:Sajitha No:9150434998

  • @afterwecollidedvaathi2831
    @afterwecollidedvaathi2831 Жыл бұрын

    Entha 100k coding phone la kathuka mudiyatha sir??

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    No, try to arrange a laptop. mobile le kathukkurathukk neraya limitations irukk

  • @balajiv8081
    @balajiv80814 ай бұрын

    Anna ye kitta nalla laptop illa but government laptop dha iruku athula intha installation lam pana mudiyuma 📌

  • @brototypetamil

    @brototypetamil

    4 ай бұрын

    Specification ellame enna bro? Namma channelilea "Best Laptop" Apidi oru video erruk athe pathale ungaude laptop lea mudiyuma nn theriyum!

  • @s.thamimansari8439
    @s.thamimansari8439 Жыл бұрын

    Anna Tamil la computer science group padicha it la job kadaikuma

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    of course, enna padichalum prachane ille, skill develop panna pothum.

  • @maranmaran2278
    @maranmaran2278 Жыл бұрын

    Bro 2nd question konjam understand agala Konjam explai panringala

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    Join the Telegram group and ask your doubts there. Join here: brototype.com/ta/100k/?ref=ytdescription

  • @sivakumarm2053
    @sivakumarm205310 ай бұрын

    Assignment file doesn't open???

  • @brototypetamil

    @brototypetamil

    10 ай бұрын

    please check now

  • @sivakumarm2053

    @sivakumarm2053

    10 ай бұрын

    ​@@brototypetamil thank you...🙏✨

  • @user-qe1pc3kq3r
    @user-qe1pc3kq3r Жыл бұрын

    3. 3a) import java.io.*; public class Sum { private int number1; private int number2; public Sum(int num1, int num2) { number1 = num1; number2 = num2; } public int calculateSum() { return number1 + number2; } } class Result { public static void main(String[] args) { Sum sum = new Sum(); int result = sum.calculateSum(); System.out.println("The result is: " + result); } } 3b)class Sum { protected int number1; protected int number2; public Sum(int num1, int num2) { number1 = num1; number2 = num2; } public int calculateSum() { return number1 + number2; } } class Result extends Sum { public Result(int num1, int num2) { super(num1, num2); } public void displayResult() { int result = calculateSum(); System.out.println("The result is: " + result); } } public class Main { public static void main(String[] args) { Result result = new Result(); result.displayResult(); } } 3c)import math class Sum: def calculate_rectangle_area(length, width): return length * width def calculate_square_area(side): return side * side def calculate_circle_area(radius): return math.pi * (radius ** 2) def calculate_triangle_area(base, height): return 0.5 * base * height 3d) class Display: def display_rectangle(self): print("Displaying rectangle") def display_square(self): print("Displaying square") def display_circle(self): print("Displaying circle") def display_triangle(self): print("Displaying triangle")

  • @vi.p8376
    @vi.p83769 ай бұрын

    sir am unable to understand its too difficult

  • @brototypetamil

    @brototypetamil

    9 ай бұрын

    try repeatedly , workout in a paper , kandippa puriyum melum doubt vandha namma telegram groupla kelunga kandippa namma teach team clear panni tharunvanga

  • @Ktm_Lover_boy
    @Ktm_Lover_boy Жыл бұрын

    Bro c# sollitharu vinga la bro

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    will do

  • @Ktm_Lover_boy

    @Ktm_Lover_boy

    Жыл бұрын

    Bro na BCA appuram yanna panraathu

  • @Ktm_Lover_boy

    @Ktm_Lover_boy

    Жыл бұрын

    BCA 2nd year bro

  • @saravanaprabhu3773
    @saravanaprabhu3773 Жыл бұрын

    Naanum web development (react js) pathi video ketutu comment panitu eh iruken...en comment reject aagite iruku... (Face Rejection with courage)😅🙊...

  • @brototypetamil

    @brototypetamil

    Жыл бұрын

    will do 😂😂

  • @mrvigneshviki7269
    @mrvigneshviki72693 ай бұрын

    question2 public class Sample1 { Sample1(){ int sum; int a=10,b=20; sum=a+b; System.out.println("The result Addition is"+sum); } } public class Sample2 { Sample2(){ int a=10; int b=10; int sum; sum=a/b; System.out.println("The result Division is"+sum); } } public class Sample3 { Sample3(){ int a=10; int b=20; int sum; sum=a*b; System.out.println("The result Multiplication is"+sum); } } public class Sample4 { Sample4(){ int a=10; int b=20; int sum; sum=a-b; System.out.println("The result Subtraction is"+sum); } } public class Hello1 { public static void main(String[] args) { Sample1 s1=new Sample1(); Sample2 s2=new Sample2(); Sample3 s3=new Sample3(); Sample4 s4=new Sample4(); } } out put The result Addition is30 The result Division is1 The result Multiplication is200 The result Subtraction is-10 question number 2 out put correct sir or

  • @mrvigneshviki7269
    @mrvigneshviki72693 ай бұрын

    question3 public class Sum { double result; public void Rectangle(double length, double width) { result = length * width; } public void Square(double side) { result = side * side; } public void Triangle(double base, double height) { result = 0.5 * base * height; } public void Circle(double radius) { result = Math.PI * radius * radius; } } public class Result extends Sum { public void displayRectangle(double length, double width) { Rectangle(length, width); System.out.println("Area of Rectangle: " + result); } public void displaySquare(double side) { Square(side); System.out.println("Area of Square: " + result); } public void displayTriangle(double base, double height) { Triangle(base, height); System.out.println("Area of Triangle: " + result); } public void displayCircle(double radius) { Circle(radius); System.out.println("Area of Circle: " + result); } } public class Main { public static void main(String[] args) { Result calculated = new Result(); calculated.displayRectangle(10, 13); calculated.displaySquare(8); calculated.displayTriangle(40, 80); calculated.displayCircle(10); } }