#22 Class and Object Practical in Java

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 83

  • @user-benjaminJohn
    @user-benjaminJohn Рік тому +33

    Telusko, this video is brillant! NO ONE has been able to articulate this to me in such a clear way. I wish I had found this video YEARS ago. 🙏 Your channel is pure🔥!

  • @shaikmansoor223
    @shaikmansoor223 11 місяців тому +6

    00:05 In this video, we learned about classes and objects in Java.
    01:57 Design your objects by separating manufacturing and designing
    03:49 Methods in Java must specify access and return type
    05:39 Designing a class with a variable and a method
    07:35 To create an object, you need to specify the type and use the 'new' keyword.
    09:40 How to create an object in Java
    11:47 Create a variable called R and assign the sum of num1 and num2 to it
    13:42 The video discusses how to create a class in Java and use it to add two values.

  • @mosshead_vinsmoke
    @mosshead_vinsmoke 4 місяці тому +2

    I really appreciate you took the time to actually explain why the syntax works the way they are unlike others who just tell us
    do this
    Calculator obj = new Calculator();
    and not explain what each is and does

  • @MuthuAnushya
    @MuthuAnushya Рік тому +4

    Hey vera level bro 🎉 i can understand concepts very well it's my third days of java coding journey ,i continuously watching your tutorial and i follow ur tutorial only🎉.thank you 🎉🎉

  • @aishwaryab673
    @aishwaryab673 9 місяців тому +6

    Hey TELUSKO, this was my first comment on UA-cam because I was such an introvert to even make a comment, The way you teach I admire a lot and this video is incredible and it paves me to think of exploring all your courses!!!! Thanks again Telusko !!

    • @Makbang-b9b
      @Makbang-b9b 3 місяці тому +1

      In UA-cam they don't reavel your identity so what happened if you are an introvert or extrovert
      Sorry if there is any grammatical mistakes

  • @rohithvarma6763
    @rohithvarma6763 11 місяців тому +5

    probably the best java teacher in the world

  • @chichhasquad2342
    @chichhasquad2342 11 місяців тому +3

    Never been this much easy. Hatts off bro .

  • @chinyamaraphael-sp6wt
    @chinyamaraphael-sp6wt 8 місяців тому +2

    I don't know how I can express myself. We did objects with my lecturer but I did not understand what he was saying until I found this video. You are a redeemer. ❤

  • @fezaiozcan2227
    @fezaiozcan2227 Рік тому +5

    absolutely best tutorials about Java! thanks:)

  • @Salimuamiri-c3h
    @Salimuamiri-c3h Рік тому +1

    Congratulation you made java so easy in this short concept of object and class in java💯

  • @prasantdas587
    @prasantdas587 9 місяців тому

    You are an amazing instructor. It’s not just how to write the code but why to do it certain way.. brilliant..

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

    your all videos is excellent! i wish i had found this collection years ago.❤

  • @Shubham-fk4is
    @Shubham-fk4is Рік тому +54

    It was easy in Python, but unable to understand in Java.

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

      Yessss 😫

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

      Frst understand how to do in java, then understand in python and then do there

  • @91-ritikjain36
    @91-ritikjain36 2 роки тому +5

    sir you are the best teacher sir plzz create a new series on jsp and servlet

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

    I really like your tutorial videos.
    This is like excel VBA (back in the days) where you could import a sub from a different sheet.

  • @akankshamishra1262
    @akankshamishra1262 Рік тому

    Hi, Thanks a lot for excellent explanation, very understandable to beginners, I'm learning java for automation selenium with your video.💯

  • @mango-strawberry
    @mango-strawberry Рік тому +4

    Literally perfect explanation

  • @big-tech-solution
    @big-tech-solution Рік тому +1

    Am enjoying every bit of these lessons......Kudos

  • @MADDILAKSHMINARAYANA
    @MADDILAKSHMINARAYANA Рік тому +1

    it was an excellent explanation. Very understandable to beginners.

  • @nareshgajula
    @nareshgajula Рік тому +23

    Good but difficult for the beginners to understand the depth of your explanation!

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

    literally Legend ! I've purchased a paid course but i learn more there

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

    the int n1 and int n2 is storing the value of num1 and num2 for printing the output then why we have to initialize int a in class calculator what is it helping us in? is it helping us to store n1 and n2 value or anything else?
    ......
    and the video was really helpful and understandable😇

  • @rsvcreations7450
    @rsvcreations7450 6 місяців тому +1

    sir when i am trying this i am getting error that "can't find main method in calculator class"

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

    Did we already go over methods? I understand this but maybe we didnt study methods much. Also explaining the difference between objects classes and methods would be useful. So is an object an instance of a class comprised of methods and variables? I understand these from studying before but the teachers really didnt explain so well. This is a good example and well explained but I think its a big leap for people who do not have any background. For me this is great. Thanks. I enjoy your tutorial.

  • @photolab6712
    @photolab6712 Рік тому +1

    superb lecture...

  • @bandarisailikhitha9865
    @bandarisailikhitha9865 Рік тому

    Thanks navin, you are awesome

  • @harshadatapre2133
    @harshadatapre2133 9 днів тому

    THank you very much sir!!😇

  • @shobhashobha2614
    @shobhashobha2614 11 місяців тому +3

    Hi sir
    Which language is best for preparing dsa?

  • @shandeshchaudhary-ps1tz
    @shandeshchaudhary-ps1tz Рік тому

    you are the best man

  • @RK_Universe
    @RK_Universe 10 місяців тому +3

    can't find main(String[]) method in class-How to solve the issue.Pls comment sir.

    • @SRhyme
      @SRhyme 22 дні тому

      Compile and run seperately in the terminal.

  • @agilan1546
    @agilan1546 Рік тому

    Why are we creating a variable int a in the calculator class?

  • @kanushagrawal7192
    @kanushagrawal7192 8 місяців тому +2

    why are we using diffrent classes for adding where it can be done easily in one class only??? why to complicate things???
    and also did not understand anything rest all the videos were superb but i dont know why

  • @yitingchen8278
    @yitingchen8278 Рік тому +1

    Good explanation!

  • @nandasiddiksha5534
    @nandasiddiksha5534 Рік тому +2

    how to get user input?? Instead of assigning values to variables..

    • @__sam_danielW
      @__sam_danielW Рік тому +3

      We have to import scanner so that we can get the input from the user

  • @chaitanyathorat8429
    @chaitanyathorat8429 Рік тому +1

    Perfectooo👌👌

  • @pinkeykumari1312
    @pinkeykumari1312 10 місяців тому

    my java file created but class not loaded
    then what to do?

  • @rockybalboa6969
    @rockybalboa6969 Рік тому +1

    14:21 summmary

  • @divakarpareek9466
    @divakarpareek9466 Рік тому +2

    @telusko -- I must say your previous Java series of 6 hrs was much better then this one. I have come to 22nd video, in almost each video you are struggling to put clear example and changing in between that's frustating . It should be pre prepared.

  • @pydisettymahesh9655
    @pydisettymahesh9655 Рік тому

    it is an exaple of inheritance

  • @kirubasathish3683
    @kirubasathish3683 Рік тому +3

    sir we can add the number like this also sir?
    class Calculator{
    int a;
    public int add()
    {
    System.out.println("add");
    return 12 + 12;
    }
    }
    public class java1 {
    public static void main(String a[])
    {

    Calculator calc = new Calculator();
    int result = calc.add();
    //int result = num1 + num2;
    System.out.println(result);

    }
    }
    and good explanation sir

  • @gedelasivakrishna
    @gedelasivakrishna 11 днів тому

    Thankyou

  • @ictwithns
    @ictwithns 3 дні тому

    sir thanjs a lot

  • @rutulkarbhari4963
    @rutulkarbhari4963 Рік тому

    not working for me even if I have the same codes as you. Giving - error: can't find the main(String[]) method in class: Calculator.
    Solution?

    • @naveenrajanaveen6462
      @naveenrajanaveen6462 Рік тому +2

      Put (String args[]) instead of (String [])
      You want to give a name like args, abc, etc..

    • @rutulkarbhari4963
      @rutulkarbhari4963 Рік тому +1

      @@naveenrajanaveen6462 was helpful. And i also wanted to thank you sir🙏.

    • @miethrayan
      @miethrayan Рік тому

      ​@@naveenrajanaveen6462 but it shows error in main method

    • @Ashishhh0
      @Ashishhh0 Рік тому

      define calculator class after the hello class, then it will work fine@@miethrayan

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

    How did you spawn everything on the screen at start ? lol why you not type when we see?

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

    Instead of creating classes can't we make a complex function that works exactly the same way then why use class

  • @ourera2279
    @ourera2279 8 місяців тому

    does anyone know where are the pratice questions for these ?

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

    Please try and use relevant examples while explaining, using examples which are in no way connected to the topic makes understanding difficult for us. The Python course was very good, but this playlist seems to be derailed of its objective of making things easier for us.

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

    Bro when ur explaining explain from zero . Ur explanation is like ur teaching to intermediate level students.

  • @tekkishort9018
    @tekkishort9018 Рік тому +2

    U need to redo this part all parts were clear and concise until this video it's very bad redo it

  • @timsy4401
    @timsy4401 Рік тому +4

    this video is not much clear

  • @nprince411
    @nprince411 11 місяців тому

    tqs sir

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

    can u pls explain class and object again this videos are confusing🤔🤔

  • @gugulothusaritha1221
    @gugulothusaritha1221 Рік тому

    sir,Increase the font size

  • @rohitn6063
    @rohitn6063 9 місяців тому

    14:37

  • @hrishikeshmukherjee813
    @hrishikeshmukherjee813 Рік тому

    Super

  • @arashgh7461
    @arashgh7461 Рік тому

    Thanks for that.
    i have a project in java will you help me on that
    payable

  • @sonaligaikwad-zo5ds
    @sonaligaikwad-zo5ds 7 місяців тому

    But in calculator class main method is not declare

    • @vishwajeetdalvi
      @vishwajeetdalvi 2 місяці тому

      Need to declare it only once, and you can do it any class.

  • @manojm1853
    @manojm1853 10 місяців тому

    2:57 my iPhone says the same

  • @AnuragRawat01
    @AnuragRawat01 Рік тому

    Thank u so much 💯❤️

  • @sheiduwgwjd
    @sheiduwgwjd 8 місяців тому +1

    Confusing

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

    wow

  • @RamgiriRachaRayudu
    @RamgiriRachaRayudu 9 місяців тому

    🥳

  • @darshilchitranshi592
    @darshilchitranshi592 Рік тому +2

    14:21 summmary