Posted by : Sudhir Chekuri Thursday, 31 December 2015

Abstract method is a method which is created using "abstract"keyword.

It doesn't have any implementation or body.

It will have only signature.

Semicolon is required at the end of signature.

It is implemented in the class which inherits it.

Syntax for creating abstract method

abstract keyword access specifier return_type method_name(input parameters)

Example

abstract public long add(int a,int b);

{ 2 comments ... read them below or Comment }

  1. Google Workspace formerly G Suite, is a suite of cloud-based productivity tools designed to enable collaboration and communication within organizations.

    ReplyDelete

Followers

Total Pageviews

Powered by Blogger.

Blog Archive

- Copyright © 2013 DevStudent - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -