#046

Publié le: 04 juillet 2023
sur la chaîne: Programming Heist (Professor)
68
4

In this video we will discuss

Abstract Classes
----------------

Q1. What is dictionary meaning of abstract?
A1. existing only as an idea, not as a physical thing.


Q2. What is a abstract method?
A2. A method without body is known as abstract method.

For Example

void area();


Q3. What is abstract class?
A3. If a class contains one or more abstract methods then class is known as abstract class.
It may have both abstract and non-abstract methods(methods with bodies).
It can have constructors and static methods also.
It cannot be instantiated.(We cannot create the object of abstract class).
Although abstract classes cannot be used to instantiate objects, they can be used to create object references.


Q4. Why to create abstract class?
A4. It ensure user, to provide the implementation.
when a superclass is unable to create a meaningful implementation for a method.

Link for programs used in this video

https://github.com/krishankansal/Java...

Link for complete play list

   • Java for complete beginners (Hindi): [Runn...  


Sur cette page du site, vous pouvez voir la vidéo en ligne #046 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Programming Heist (Professor) 04 juillet 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 68 fois et il a aimé 4 téléspectateurs. Bon visionnage!