Course Content

Course Content

FAQs

When we wish to commit a programmer (either ourselves or someone else) to writing a specific class method, but we only know the name of the method and not the details of how it should be implemented, we use abstract classes. For instance, consider circles, rectangles, and octagons.

A data member, abstract method, method body (non-abstract method), function Object() { [native code] }, and even the main() method can all be found in an abstract class.

Use this general syntax to declare an abstract method: method-name(parameter-list) is an abstract type. As you can see, there is no method body. Any concrete class that extends an abstract class (i.e. a class without the abstract keyword) must override all of the abstract methods of the class.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere