Java Abstract Classes | Java Course in Tamil | Logic First Tamil

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024

ความคิดเห็น • 76

  • @037_cse_jananir7
    @037_cse_jananir7 ปีที่แล้ว +11

    Your java playlist is one of the best java tutorial in youtube

  • @virat_pattt
    @virat_pattt 2 ปีที่แล้ว +11

    Unga voice super aa iruku 😍😍 also explaining slang also just awesome 😎

  • @gowthamselvaraj7793
    @gowthamselvaraj7793 ปีที่แล้ว +9

    abstract class shape{
    abstract void area(int a,int b);
    }
    class square extends shape{
    public void area(int a,int b){
    System.out.println(a*b);
    }
    }
    class triangle extends shape{
    public void area(int a,int b){
    System.out.println(a*b/2);
    }
    }
    class Main
    {
    public static void main(String[] args) {
    square s=new square();
    triangle t= new triangle();
    s.area(10,20);
    t.area(10,20);
    }
    }

    • @uzumakinaruto-ys3wp
      @uzumakinaruto-ys3wp 6 หลายเดือนก่อน +1

      How can you give two parameters for square?

  • @spooja4549
    @spooja4549 3 ปีที่แล้ว +9

    Please add all the codes in description, it will be easy for us to revise before the interview day

  • @aravindkumar8743
    @aravindkumar8743 2 ปีที่แล้ว +5

    14:20
    define panniye aganum nu nammala thitudhuuu.....👍🤣🤣😝😝🤣🤣ultimate nga

  • @nimalj7233
    @nimalj7233 4 หลายเดือนก่อน

    object names m1 and m, m2,m3,m4 nu kodukama unique names koduthu explain panni innum nalla puriyum

  • @sarankumar6360
    @sarankumar6360 3 ปีที่แล้ว +3

    Vera level ka🤩spr a purithu

  • @singertamil0145
    @singertamil0145 ปีที่แล้ว

    your voice so cute and explain slag also very nice and easy to understand very well thank you class mam😍😃

  • @gowtham7819
    @gowtham7819 2 ปีที่แล้ว +4

    Thanks Mam. Best Explanation 👍

  • @ananthkumark6870
    @ananthkumark6870 2 ปีที่แล้ว +14

    Mam Your Teaching is Very easy to learn ....Please do the playlist for DBMS and SQL

  • @gokulkannane3653
    @gokulkannane3653 2 ปีที่แล้ว +1

    You make it easy...Thank you Mam.

  • @JegaBright
    @JegaBright 3 ปีที่แล้ว +4

    நன்றி அக்கா 🙏

  • @vigneshrp1294
    @vigneshrp1294 ปีที่แล้ว

    thank you so much.....your explanation is very clear for all the topics.

  • @_NAGASUBRAMANIANS
    @_NAGASUBRAMANIANS ปีที่แล้ว +1

    Solution for the exercise::::
    -----------------------------------------------------------------
    import java.util.*;
    abstract class Common{
    int length,breadth;
    abstract int area();
    }
    class Square extends Common{
    int length;
    Square(int length){
    this.length=length;
    }
    int area(){
    return length*4;
    }
    }
    class Triangle extends Common{
    int length,breadth,height;
    Triangle(int length,int breadth,int height){
    this.length=length;
    this.breadth=breadth;
    this.height=height;
    }
    int area(){
    int a=breadth*height;
    return a/2;
    }
    }
    public class Main
    {
    public static void main(String[] args) {
    ArrayListc = new ArrayList();
    c.add(new Square(4));
    c.add(new Triangle(2,4,4));
    for(Common i:c){
    System.out.println(i.area());
    }
    }
    }

  • @jaibeembeema5086
    @jaibeembeema5086 2 หลายเดือนก่อน

    Wow excellent thank u so much

  • @aathisrees7730
    @aathisrees7730 ปีที่แล้ว

    Hi cute explanation And sweet voice

  • @aazhinisenthilkumaran7780
    @aazhinisenthilkumaran7780 ปีที่แล้ว +3

    Mam can you please add the code in the description or in the pinned comments so that we can revise easily before exam??

  • @kannanb0317
    @kannanb0317 ปีที่แล้ว +8

    Mam, I have an one doubt? What's the difference between ( Member m1 = new Student(); and Student s1 = new Student(); ) in the time of object initialization?

    • @sivamsivam700
      @sivamsivam700 ปีที่แล้ว +6

      Actually in Member m1 means, not memory allocation in heap for base class(m1), you just create a member class object reference variable.
      New student(); means
      create a new child class (Student)object.this is what memory allocation for child class.
      That child class reference assigning to the base class object variable.
      In base class object variable we can store base class object reference and also can store child class object reference.(polymorphism)
      You can't create new object for base class.{new memeber ().}
      Because base class is a abstract class.

    • @navaskhaniv-b8719
      @navaskhaniv-b8719 9 หลายเดือนก่อน +1

      @@sivamsivam700but here we cannot create the object for base class. right ? then what is the purpose of declaring Member m1 here ? just a query.

    • @mukeshkannan4546
      @mukeshkannan4546 3 หลายเดือนก่อน

      Becoz all students ,teachers and Staffs were under the inheritance of Member class. We can't able to create different arrays for different classes (becoz it's a long process.)

  • @kajamoideen9062
    @kajamoideen9062 ปีที่แล้ว +1

    12:11 line 5 la abstract void ah //committed pannirunga abstract ah remove pannitu verum void method kodukalamay.??

  • @CARevanthkumar
    @CARevanthkumar 7 หลายเดือนก่อน

    package Absract;
    abstract class Shape
    {
    abstract void area(int n);
    }
    class Square extends Shape
    {
    void area(int n)
    {
    System.out.println("Square:" + (n * 4));
    }
    }
    class Triangle extends Shape
    {
    void area(int n)
    {
    System.out.println("Triangle:" + (n * 3));
    }
    }
    public class Exercise {
    public static void main(String[] args) {

    Shape[] s = new Shape[2];
    s[0] = new Square();
    s[1] = new Triangle();

    for(Shape s1: s)
    {
    s1.area(4);
    }
    }
    }

  • @yeshwanthiganesh7061
    @yeshwanthiganesh7061 2 ปีที่แล้ว +1

    Super akka I got the output

  • @baskarj9419
    @baskarj9419 2 ปีที่แล้ว +1

    Mam, abstract methodla irukura concrete methods and variablesa eppadi access pandradhu.derived classla Override pannama access panna mudiyuma?

  • @R3d0ps
    @R3d0ps 3 ปีที่แล้ว +1

    super video akka

  • @uzumakinaruto-ys3wp
    @uzumakinaruto-ys3wp 6 หลายเดือนก่อน

    Answer for the Question
    // Shape
    public abstract class Shape {
    abstract void area();
    }
    class Square extends Shape {
    private double side ;
    public Square(double side){
    this.side = side;
    }
    @Override
    void area(){
    double squareArea = side*side ;
    System.out.println("Area of Square ="+squareArea);
    }
    }
    class Triangle extends Shape {
    private double height ;
    private double base;
    public Triangle(double height,double base){
    this.height = height;
    this.base = base;
    }
    @Override
    void area() {
    double triangleArea = 0.5 * base * height;
    System.out.println("Area of Triangle ="+triangleArea);
    }
    }
    //Main class
    public class Main {
    public static void main(String[] args) {
    Square square = new Square(23);
    Triangle triangle = new Triangle(20,10);
    // triangle.area();
    // square.area();
    Shape[] area = new Shape[3];
    area[0]= new Square(10);
    area[1]= new Triangle(20,10);
    area[2]= new Square(30);
    for (int i = 0; i < area.length ; i++) {
    area[i].area();
    }
    }
    }

  • @gokulnathps8246
    @gokulnathps8246 ปีที่แล้ว

    Great explanation

    • @shahnaz9026
      @shahnaz9026 ปีที่แล้ว

      Do you have a solution for this exercise? I got an error..

  • @kbharathotk
    @kbharathotk 7 หลายเดือนก่อน

    Nice voice slang

  • @sivamsivam700
    @sivamsivam700 ปีที่แล้ว

    Mam member class ku array objects create panum pothu
    new Member [ ]; nu podurom.
    New keyword abstract class ku use panna kudathu sonnigalay mam.
    elements kaana index references create pandrathunala athu allow pannuthaanga maa
    New Member( );
    Ipdi podum pothu heap la oru object create pandrathunaala allow pannaliya mam.
    Correct taanu sollunga mam

  • @aktherMHS
    @aktherMHS ปีที่แล้ว

    Hats off !

  • @greenenergy1817
    @greenenergy1817 ปีที่แล้ว

    vara level mam 🙏🥰🥰🥰

  • @reeganthomas44
    @reeganthomas44 ปีที่แล้ว

    Thank you 🙂👍

    • @shahnaz9026
      @shahnaz9026 ปีที่แล้ว

      Do you have a solution for this exercise?

  • @aarav9621
    @aarav9621 11 หลายเดือนก่อน

    So basically idhu inheritance dhane?

  • @065.poorwinsankar.r.k3
    @065.poorwinsankar.r.k3 2 ปีที่แล้ว

    Mam..neenga last ah kudukura programs ku ans enga iruku??

  • @joshstudioz8834
    @joshstudioz8834 3 ปีที่แล้ว +1

    akka...java ku unga videos pathale concepts lan clear ah irrukum la???...

    • @LogicFirstTamil
      @LogicFirstTamil  3 ปีที่แล้ว

      Yes. For understanding all concepts its enough.

    • @shahnaz9026
      @shahnaz9026 ปีที่แล้ว

      Do you have a solution for this exercise?

  • @shinChan-wx8gg
    @shinChan-wx8gg 3 ปีที่แล้ว +1

    Super 👍

  • @aswinsurya5503
    @aswinsurya5503 ปีที่แล้ว

    Accessor and mutator method sollunga

  • @gokulnath6373
    @gokulnath6373 3 ปีที่แล้ว

    Mam first u said for abstract u can't create object but after very mins u create array object for abstraction mam.so my question if array means i create for abstraction?? confuse mam

    • @LogicFirstTamil
      @LogicFirstTamil  3 ปีที่แล้ว +3

      No no. I have mentioned in the video. on left side of = you can create a reference of abstract class. But on right side you cannot create abstract object with the "new" keyword. Observe carefully.

    • @gokulnath6373
      @gokulnath6373 3 ปีที่แล้ว

      @@LogicFirstTamil mam thanks a lot

  • @shortboy9976
    @shortboy9976 3 ปีที่แล้ว +1

    mam can you saggest some best book in c++ and java

    • @LogicFirstTamil
      @LogicFirstTamil  3 ปีที่แล้ว +3

      Effective Modern C++
      by Scott Meyers, for java - core java by Horstmann

    • @shortboy9976
      @shortboy9976 3 ปีที่แล้ว +2

      Thank you mam

  • @kanish10
    @kanish10 ปีที่แล้ว +1

    Hii akka 😊😊 akka nenga nala solli tharinga akka enaku oru help akka na ippo second year akka Na BTech IT group akka enaku Java solli Kudukiringala akka plz 🙏

    • @LogicFirstTamil
      @LogicFirstTamil  ปีที่แล้ว

      i dont take classes. u can easily learn from youtube itself

    • @shahnaz9026
      @shahnaz9026 ปีที่แล้ว

      Do you have a solution for this exercise?

  • @manikandanvelayutham4768
    @manikandanvelayutham4768 2 ปีที่แล้ว

    Akka ipo abstract cls ku Object create panna mudiyathuna athula iruka concrete method na epdi call panrathu....

  • @karthicknagaraj8089
    @karthicknagaraj8089 2 ปีที่แล้ว +1

    I wanna ur example code !

  • @programmer5688
    @programmer5688 3 ปีที่แล้ว +2

    Interface...along with abstract class sollunga mam.. Please

    • @LogicFirstTamil
      @LogicFirstTamil  3 ปีที่แล้ว

      Will upload

    • @programmer5688
      @programmer5688 3 ปีที่แล้ว

      @@LogicFirstTamilmam JDBC um teach pannuvinga la... Please sollunga please open an insta account as same as utube channel to ask doubts man

    • @LogicFirstTamil
      @LogicFirstTamil  3 ปีที่แล้ว

      @@programmer5688 I will try to give overview not in depth.

    • @LogicFirstTamil
      @LogicFirstTamil  3 ปีที่แล้ว

      And sorry abt insta, i will not be having time to clear all doubts. Hope you understand

    • @programmer5688
      @programmer5688 3 ปีที่แล้ว

      @@LogicFirstTamil ok mam

  • @karthickkumar1380
    @karthickkumar1380 2 ปีที่แล้ว +1

    niceeee

  • @swathi1045
    @swathi1045 2 ปีที่แล้ว

    sis junit ku video poturndhingana link anapunga sis

  • @studentofklnce472
    @studentofklnce472 ปีที่แล้ว

    Mam please upload source code, it will help us to note

  • @surya-ow4wr
    @surya-ow4wr 2 ปีที่แล้ว +2

    ✌✌

  • @ranjithrk4212
    @ranjithrk4212 3 ปีที่แล้ว +1

    Mam PHP solli thanga

    • @LogicFirstTamil
      @LogicFirstTamil  3 ปีที่แล้ว

      i dont know PHP . Sorry

    • @TheProtagonist555
      @TheProtagonist555 2 ปีที่แล้ว

      PHP padikadhinga bro... Pick languages like Javascript or Python..

    • @037_cse_jananir7
      @037_cse_jananir7 ปีที่แล้ว

      @@LogicFirstTamil please teach all dsa concepts with java programs. it will be very useful to us. Your teaching is excellent

    • @LogicFirstTamil
      @LogicFirstTamil  ปีที่แล้ว

      @@037_cse_jananir7 I already have DSA playlist. Chk that.

    • @037_cse_jananir7
      @037_cse_jananir7 ปีที่แล้ว

      @@LogicFirstTamil okay mam