- Back to Home »
- C#.NET »
- C#.NET Abstract method
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);
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);
It 's an amazing and Very Nice,Thanks for sharing
ReplyDeleteDot Net Online Training Hyderabad
Google Workspace formerly G Suite, is a suite of cloud-based productivity tools designed to enable collaboration and communication within organizations.
ReplyDelete