+ 2

What is abstract class and how it is used?

21st Apr 2021, 2:29 AM
Ur-Wellwisher
Ur-Wellwisher - avatar
2 Antworten
+ 1
abstract class is used for declaring the abstract methods just . You can't create a object of abstract class. In order to define and use abstract methods you need to inherit from abstract class in some other class and then use override to provide definition for abstract methods . If you are looking for implementation in c# you can check following article . https://www.google.com/url?sa=t&source=web&rct=j&url=https://www.w3schools.com/cs/cs_abstract.asp&ved=2ahUKEwiS2-HEpo7wAhVJWX0KHSeiDscQFjAAegQIAxAC&usg=AOvVaw1H34F_lxVtTBxv2OSNVJwO&cshid=1618972561386
21st Apr 2021, 2:37 AM
Abhay
Abhay - avatar
0
Abstraction is process that hide implementation details and show only functionality to users. In another words, It shows only essential things to user and hide the internal details. Learn more about in this article with examples :- https://uniquethrowdown.blogspot.com/2020/05/abstract-in-java.html https://uniquethrowdown.blogspot.com/2020/12/what-are-oops-concept-in-java.html
21st Apr 2021, 6:19 AM
Java Developer
Java Developer - avatar