90 minutes of lecture explained in 15 minutes thank you!!
@notbarbara26476 жыл бұрын
This video is a little vague, so let me try to explain this in a more simple manner. Consider a program that deals with shapes drawn on the screen. Let's say that the shapes include rectangles, ovals, and roundrects of various colors. Three classes, Rectangle, Oval, and Roundrect, could be used to represent the three types of shapes. The three classes would have a common superclass, *Shape*, to represent features that all three shapes have in common. The Shape class could include instance variables to represent the color, position, and size of a shape, and it could include instance methods for changing the values of those properties. Now, if you think about it, there can never be any reason to construct an object of type Shape! We say that Shape is an abstract class. An abstract class is one that is not used to construct objects, but only as a basis for making subclasses. An abstract class exists only to express the common properties of all its subclasses. If you still don't get it, the same would apply for a class Vehicle. There is no way to 'own' a vehicle as such. You can't go up to a friend and ask: "What car do you have?", and he would respond with: "I got a vehicle man!!", there's just no way. Therefore Vehicle would be an example of an abstract class. The actual vehicle has to be a car or a truck or a motorcycle of a specific brand with a specific color, or some other "concrete" type of vehicle. I hope you guys get it now :)
@kasim77136 жыл бұрын
Thanks you made that much simpler
@jadia6 жыл бұрын
Thanks mate for this simple explanation.
@willsonkingtinlaw72895 жыл бұрын
great, appreciate your sharing :D
@neomillmarcreas65355 жыл бұрын
Nice
@nuranferzeli51075 жыл бұрын
vehicle and car example look like more Enum class not abstract class
@zyro99225 жыл бұрын
It's 2019. Still phone can't move, dance or cook :(
@subsnowlink0095 жыл бұрын
Abstract phones
@alisarwar33993 жыл бұрын
its 2021 and they still cant do, what done by ramesh in 5 min
@rameshv27623 жыл бұрын
@@alisarwar3399 😂
@tanveersayyed5612 жыл бұрын
Now it's 2022 I can make my phone move and dance by my own
@Rahul-px6zq2 жыл бұрын
Now it's 2022🥲 sadly we got no such phones yet
@duyejamilla68977 жыл бұрын
from what i understood, it was used to update the methods, because sometimes large projects cant finish it in a short period of time, to avoid going back at the top, abstract is used to continue unfinished methods. Abstract methods are undefined actions/methods. concrete method is the finished actions/methods.
@kotiramamurthydavuluri18838 жыл бұрын
Kohli of Java. Waiting for ur tutorial daily. Daily learning a concept helping me a lot. Thanks sir.
@PankajDuse7 жыл бұрын
Hah Sir..please keep it up
@RiteshKumar-ri1xq6 жыл бұрын
You have explained the concept of "Abstract Class" brilliantly in this video.
@skiinet_78677 жыл бұрын
wow, this was such a good explanation, my professors never took the time to explain these topics this well, thank you!
@muleytanushri72628 жыл бұрын
What a wonderful explanation ! The actual concept of Abstract class is now cleared with the help of your video. Thanks a lot again Navin Sir !!
@AbdulWasaeTariq8 жыл бұрын
The best example of Abstraction i have ever seen!
@rajbhardwaj39723 жыл бұрын
It's 2021 and we're still searching from someone like Suresh. :')
@albinvarghese43756 жыл бұрын
Sir i am so facinated by ur explanations on java topics well explaind and brief execution .good sir keep it up and we are waiting for ur classes
@rajakhan5707 жыл бұрын
Hi, I'm software engineering student and this fella is brilliant in explaining.
@vijayjangid89674 жыл бұрын
Best way of teaching really understood the concept after watching only once. Really insprirng way
@isloo_boy4 жыл бұрын
completely understood " abstract class cannot be instantiated(cannot have objects) but can be inherited by other classes "
@judonomi5 жыл бұрын
Finally! Thank you! I really needed an example that made sense. Great video :)
@pradyumna255 жыл бұрын
Best video lectures on java.... Sounds Good!!!!
@saicharan90433 жыл бұрын
No words Navin, awesome 👏👏👏👏👏👏👏
@hkkabir20243 жыл бұрын
excellent bro. you save my days.i was learning interface so it's required to know the knowledge of abstract method and class.
@harishkumarforever5153 жыл бұрын
preparation for semesters exams from your video's 🔥🔥
@SurajBahadurTutorial8 жыл бұрын
wow, wt a explanation about abstract. thank you so much sir . you always gives real life example and makes me not to go back and revise . one time watch of tutorial is enough to understand. thank you so much clear my concept
@SmartProgramming6 жыл бұрын
thanks for the explanation sir, thank you thank you 👍👍👍🙂🙂🙂🙂
@arvindg9274 жыл бұрын
2 day of dozen doubt explained in 1 short vedio... Wow thank u ❤️❤️👏
@112358henry8 жыл бұрын
It's a really great introduction of abstract class! Thank you!
@jackhou38657 жыл бұрын
Thanks! It really helped me to understand what my college professor didn't teach well.
@AttentiveAdventurer7 жыл бұрын
Hello Navin, you are a great teacher. Thank you.
@VivekKumar-ky6tm7 жыл бұрын
Awesome again . you are best at your work. you should be appreciated for your wonderful work....
@souvikdas36164 жыл бұрын
very good examples that making me easy to learn.. big thank u...
@shaminali7697 жыл бұрын
wonderful explanation of abstract class!!
@techchamp45085 жыл бұрын
Another method should be ====> private void paymytaxes(); I am sure everyone would love that feature.
@senthilkumarmurugaiyan98317 жыл бұрын
Awesome Explanation, Very Nice
@ankitkumargupta97533 жыл бұрын
Thanks for the simplified understanding
@mahmuduulkarimlincoln79327 жыл бұрын
fantistic bro!!!! i cleared totally!!!! thanks a lot!!!
@sanjusanjeev37535 жыл бұрын
Thanks for giving proper example.
@lalala87ful3 жыл бұрын
you are an absolute God
@venkateshkilari65723 жыл бұрын
Excellent explanation
@RaviKumar-rw2lx6 жыл бұрын
u r amazing sir , thanku for such wonderful explanation
@AhamedKabeer-wn1jb5 жыл бұрын
Superb Explanation
@saibagam51848 жыл бұрын
Your explanation is outstanding i am looking for a video like this .Thank u sir.
@kyku20054 жыл бұрын
You did a great job!
@aniket64824 жыл бұрын
Thankkkkkkk you so much sir for given this super explanation |
@vishals74257 жыл бұрын
Nice video i got how abstraction works
@vladanulardzic58595 жыл бұрын
Well done ! Keep on ...
@Sushil28748 жыл бұрын
Ausum explanation sir..........
@achaltiwari94995 жыл бұрын
At 14:10 , how did you extend abstract class(Phone) without without using abstract ?
@shamshuddinali56955 жыл бұрын
two things to understand while extending an abstract class 1) if you extend an abstract class and override or implement all the methods in it,then there is no need of using keyword abstract. 2)if there are 2 abstract method and you override only one,then it is compulsory to use abstract keyword. In the example explained above,Abstract class Phone has only one abstract method which he has overridden in child class,hence there is no error and also object of that class can be created.
@saravanabalaji19135 жыл бұрын
Wonderful Teacher ..... I have a question sir? For which class you r creating object sir? @9:23 MaheshPhone obj = new SureshPhone(); I am little bit confused on the above step sir?... please help me sir......
@hadisyadollahi71128 жыл бұрын
Hello Sir, Thanks for your amazing tutorial I didn't quite get the part we create the Show method, I assume we can directly call the showConfig() from each class, why do we nedd the last method?
@divyasreeaedakula60063 жыл бұрын
Yeah...that is also one way
@siddheshthavre7383 жыл бұрын
Thank you so much ❣️
@alan65063058 жыл бұрын
excellent explanation thanks
@bayanomar86615 жыл бұрын
4:21 is this a compilation or syntax error?
@dhivi13185 жыл бұрын
Very useful nd clr.tq
@startech85254 жыл бұрын
Thank you so much guruji😃
@ckbapps20098 жыл бұрын
OMG, it is so easy to understand. :D
@rishabhsingh4534 жыл бұрын
But I heard somewhere that we can't create objects of abstract class, and in method show(phone obj) we are passing object of an abstract class. How. ???
@kamleshsilag984 жыл бұрын
thats just a reference. Not actual Object
@pawemackowski14933 жыл бұрын
thanks for the video :)
@workisworship72534 жыл бұрын
Ek tarfa sir
@gowthambhat14982 жыл бұрын
great example
@debrajroy12906 жыл бұрын
thanx for explaining this. this is a awesome video. can u pls tell me what are the topics require to know in java to undergo an android development training?
@allankumar75526 жыл бұрын
A lot of thank you sirG.
@Sai-wv3hq7 жыл бұрын
Nice explanation
@ManishKumar-zt5sk4 жыл бұрын
super explanation
@RezaJafari19844 жыл бұрын
Every college teacher play gangsta until Telusko come in.
@satoshinakamoto1716 жыл бұрын
can you please make a complete java project that has all the concepts of java in Eclipse? like a program that uses all the java features (or at least the important ones) in one series of videos? or a complete series of making a andriod app ?
@ashutoshthapa32237 жыл бұрын
SureshPhone obj=new SureshPhone(); also gives the same output. Question: Q1. Is it fine to do it in above mentioned way?? Q2. If Q1 answer is no then why? Q3. if Q1 answer is yes then in which situation we need to use: ParentClass obj=new ChildClass();
@anikettambe81477 жыл бұрын
Q1.yes Q3.Dynamic Method Dispatch
@HeWhoShalNotBeNamed_5 жыл бұрын
This is basically polymorphism , up casting.
@muaf83748 жыл бұрын
Thanks for your teaching. Can you continue this for creating normal class inside abstract class?
@bibhudanandadash6 жыл бұрын
Excellent..
@micky9926 жыл бұрын
Cook and Dance for a phone sounds bizarre even as an example! Could have used something else like Vibrate and 3G/4G. Good concept explanation.
@shashwatsahai42604 жыл бұрын
Sir, you wrote MaheshPhone obj = new SureshPhone(); Why did that not give any error or warning?
@visheshpahuja24 жыл бұрын
because Grandson can inherit features from grandfather or not
@youuoyd8 жыл бұрын
i have to thank you mr. Telusko for this video i want to ask you about if you have any code for complex number abstract class Thank you again
@asfiyashaik45654 жыл бұрын
What if I have two methods under each subclass and I want to call the methods alternatively eg: i have call and text methods and the output must be calling...(1st subclass) calling...(2nd subclass) texting...(1st subclass) texting...(2nd subclass)
@lenimentus46988 жыл бұрын
Very good video! - But why would someone need an abstract class in his java life?
@nithinspicy94387 жыл бұрын
LOL,i think u need to loop the video to understand it
@MrAbbasalrassam7 жыл бұрын
Nithin Spicy so funny 😂
@pinky_arya7 жыл бұрын
hello sir .nice video ..but pls give some example related to small mathematical formule like add n subtract...this phone example is little bit confusing ....I did not understand the use , the need of abstract class actuLly
@thomasphilip81583 жыл бұрын
Thank you!!
@ananyasinghal46245 жыл бұрын
The abstract classes cannot be instantiated even if they contain concrete Classes??
@hsar255 жыл бұрын
hi Sir can you please make a video on diffrence between abstraction and interface.?
@devbratsingh22508 жыл бұрын
in our example of phone .in public static void main.. after creating of object of iphone and samsung u had written show(obj or obj1).WHAT IS USE OF WRITTIMG THIS show() plz explane
@lawrencelanzaderas74017 жыл бұрын
I think the use of it is to call the method show()
@niteshkumarsingh77196 жыл бұрын
Nice video
@tarungariya68186 жыл бұрын
Sir , We can do same thing by overriding the showConfig() of Parent class "Phone" in both class Iphone and SamsungS4 and then use reference of parent class (Phone) in object passing as a parameter.......now my question is If we can do this by Overriding then how abstract class is more efficient ???? Whats the difference in between both the programs??? (Pls Ignore Grammar ,I know google is also unable to auto correct this.....lol)
@prashantgautam75777 жыл бұрын
bro if we could define concrete methods also in abstract class then what is the use of abstract class ,we could define that concrete method in a concrete class
@nehanegi45125 жыл бұрын
sir , in this lecture you told that an abstract class can have abstract method or not . But can you give me one example of a abstract class which don't have any abstract method?
@sathichatterjee94295 жыл бұрын
In your second example you have written the method as : public static void show(phone obj) this confuses me as in I don't understand how are the objects getting passed to get the desired result because you are modifying as either show.(obj) or show.(obj1) but in public static void show(phone obj) you are not modifying it as obj or obj1 so how does the differentiate its working?
@gurug1153 жыл бұрын
Sir, in second phone example, why you pass the obj in show method. In main method obj. Showconfig() ; to we directly get the answer. Then why?
@deepakguru77914 жыл бұрын
Why we are using a separate method canned public static void show, why can't we call showconfig from main class??
@snehamurya82056 жыл бұрын
Great video. My doubt is why we we made the show() method static? I know it gave an error(Non-static method cannot be referenced from a static context) but I am not getting its concept.
@ajaynagireddy12676 жыл бұрын
static methods can call non static methods of other class...if one only if we have reference of that other class...in the above video, he had accessed the other class method by using reference of that other class.. so he didn't got any error.
@bellalmahtab82202 жыл бұрын
Great
@AshwaniRajput296 жыл бұрын
Sir can you explain this code. Why did you use ' static show(Phone obj) method ? And why did you use show(obj) ;
@ashishagrawal23758 жыл бұрын
Hello Naveen. Can't we directly call the showconfig() after creating the Object in main function.DO we Need the show() function?
@pritamparab64497 жыл бұрын
ashish agrawal we can!!! he just did that to explain the concepts
@goneandwiped35212 жыл бұрын
Mind blown !
@Suni7774 жыл бұрын
Thanks sir
@mwstackstack78247 жыл бұрын
Hi naveen , What is the correct way of writing classes?you have written all above classes inside same ad demo.java thing. eg class Addemo,iphone and samsung s4. So what if we create classes seperately?Is it a time wasting thing? I am a beginner.
@svanaja3312 жыл бұрын
awesome
@lalithamuthusamy20805 жыл бұрын
is it possible to initialize value in constructor in abstract class?
@bishalrajbhattarai54824 жыл бұрын
No
@shakif34604 жыл бұрын
Good
@tusharladukar64937 жыл бұрын
In 8.18 2nd example is not much cleared.
@catalintodoran43024 жыл бұрын
Bro, u good :3
@swapnilsonawane18584 жыл бұрын
Sir By using parent refrence we can create child object but by using that object we can only call parent method But here you call all the method
@KAiSKAjO6 жыл бұрын
inshallah ill be big as eminem one day!
@karanrawat16594 жыл бұрын
Soo ,if we create an abstract method , then it will surely get overridden? (By some different class)
@RakeshKumar-uw4dh7 жыл бұрын
if i want obj1 as parameter automatically after obj , in other words if i don't want to pass parameter in show manually after obj so what should i do? every time i have to change the parameter of function show to call output of Samsungs4 after Iphone.
@sushantsinghrathore14 жыл бұрын
AT LINE 37 YOU USED ";;" DOUBLE SEMICOLON HOW IT MANGED TO RUN???
@ganeshbingi47826 жыл бұрын
Sir, if abstract class doesn't able to create object then how can it being passed object of phone from method show .