#6.8 Java Tutorial | Abstract Keyword

Описание к видео #6.8 Java Tutorial | Abstract Keyword

We can instantiate the abstract class which means we can not create an object of an abstract class.
- We can use abstract keyword with both abstract method and abstract class.
- We can do both define or declare an object.
- When you want to declare a method in an abstract class, you can create the abstract method in it as:
public abstract void eat();
- Whenever you create an abstract method then it is compulsory to write an abstract keyword with it.
- We create an abstract method only when we do not want to define that method at the time.
- Whenever you create an abstract method then that class should be abstract otherwise it will give you an error.
- If a class extends an abstract class then it is compulsory to define the method in it as well for which you are creating an object.

e.g., Human obj=new Man();
- Here, Human is a reference of an abstract class, and an object of Man class is created that is a main class and not an abstract class but extending an abstract class Human.

Human :- abstract class
Man :- non-abstract class ( Concrete class)

In this video we will see:
- What is an abstract keyword?
- Abstract method and abstract class
- How to define an abstract method?
- Properties of an abstract class and an abstract method
- How to create an object of an abstract class?

Instagram :   / navinreddyofficial  
Linkedin :   / navinreddy20  
Discord :   / discord  

More Learning :

Java - https://bit.ly/3xleOA2
Python :- https://bit.ly/3H0DYHx
Django :- https://bit.ly/3awMaD8
Spring Boot :- https://bit.ly/3aucCgB
Spring Framework :- https://bit.ly/3GRfxwe

Servlet & JSP :- https://bit.ly/3mh5CGz
Hibernate Tutorial :- https://bit.ly/3NWAKah
Rest API | Web Service Tutorial :- https://bit.ly/38RJCiy

Git :- https://bit.ly/3NUHB3V
JavaScript :- https://bit.ly/3mkcFys
Kotlin :- https://bit.ly/3GR2DOG


Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
http://www.telusko.com/contactus

Комментарии

Информация по комментариям в разработке