{"id":1182,"date":"2017-02-03T11:41:49","date_gmt":"2017-02-03T11:41:49","guid":{"rendered":"http:\/\/abhiandroid.com\/androidstudio\/?p=1182"},"modified":"2018-06-05T07:11:54","modified_gmt":"2018-06-05T07:11:54","slug":"implement-abstract-method","status":"publish","type":"post","link":"https:\/\/abhiandroid.com\/androidstudio\/implement-abstract-method.html","title":{"rendered":"How To Implement Abstract Method In Android Studio"},"content":{"rendered":"<p>In this post we are going to discuss how to implement Abstract\u00a0in Android Studio. Before discussing it lets first revise what is Abstract methods.<\/p>\n<p><span style=\"color: #008000;\"><strong>Abstract Method &#8211;\u00a0<\/strong><\/span>The methods without body or methods with only signatures are called abstract methods. The abstract method doesn\u2019t have any implementation details. It is declared using abstract keyword before method name. So it is required to implement the abstract method. Please read <a href=\"\/java\/abstraction\">Abstraction tutorial<\/a> for full details about it.<\/p>\n<hr \/>\n<h4>Ways to Implement Abstract Method In Android Studio:<\/h4>\n<p><span style=\"color: #008000;\"><strong>Method 1:<\/strong><\/span><\/p>\n<p><span style=\"color: #008000;\"><strong>1)<\/strong><\/span> The manual method for this in android studio is simply go to menu bar click <strong>Code -&gt; Generate.<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1189\" src=\"\/androidstudio\/wp-content\/uploads\/2017\/02\/Abstract-Class-Implementation-Select-Menu-In-Android-Studio.png\" alt=\"Abstract Class Implementation Select Menu In Android Studio\" width=\"329\" height=\"297\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/02\/Abstract-Class-Implementation-Select-Menu-In-Android-Studio.png 329w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/02\/Abstract-Class-Implementation-Select-Menu-In-Android-Studio-300x271.png 300w\" sizes=\"auto, (max-width: 329px) 100vw, 329px\" \/><br \/>\n<span style=\"color: #008000;\"><strong>2)<\/strong><\/span> On clicking will open a pop up then click over<strong> Implement Methods<\/strong>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1187\" src=\"\/androidstudio\/wp-content\/uploads\/2017\/02\/Abstract-Class-Implementation-In-Android-Studio.png\" alt=\"Abstract Class Implementation In Android Studio\" width=\"194\" height=\"235\" \/><br \/>\n<span style=\"color: #008000;\"><strong>3)<\/strong><\/span> Further a window will open select the methods and click ok, this will implement the abstract method.<\/p>\n<p><span style=\"color: #008000;\"><strong>Method 2:<\/strong><\/span><\/p>\n<p><span style=\"color: #008000;\"><strong>1)<\/strong><\/span>\u00a0 In this methods just remember the shortcuts for the same task. <strong>Control + I<\/strong> will open the window to select implement method and click ok. Same shortcut for Mac also.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1188\" src=\"\/androidstudio\/wp-content\/uploads\/2017\/02\/Abstract-Class-Implementation-Window-In-Android-Studio.png\" alt=\"Abstract Class Implementation Window In Android Studio\" width=\"358\" height=\"556\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/02\/Abstract-Class-Implementation-Window-In-Android-Studio.png 358w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2017\/02\/Abstract-Class-Implementation-Window-In-Android-Studio-193x300.png 193w\" sizes=\"auto, (max-width: 358px) 100vw, 358px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post we are going to discuss how to implement Abstract\u00a0in Android Studio. Before discussing it lets first revise what is Abstract methods. Abstract Method &#8211;\u00a0The methods without body or methods with only signatures are called abstract methods. The abstract method doesn\u2019t have any implementation details. It is declared using abstract keyword before method &hellip; <a href=\"https:\/\/abhiandroid.com\/androidstudio\/implement-abstract-method.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How To Implement Abstract Method In Android Studio<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63,1],"tags":[],"class_list":["post-1182","post","type-post","status-publish","format-standard","hentry","category-android-studio","category-archieve"],"psp_head":"<title>How To Implement Abstract Method In Android Studio \u2013 Abhi Android<\/title>\r\n<meta name=\"description\" content=\"In this post we are going to discuss how to implement Abstract in Android Studio. Before discussing it lets first revise what is Abstract methods.\" \/>\r\n<meta name=\"robots\" content=\"index,follow\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/abhiandroid.com\/androidstudio\/implement-abstract-method.html\" \/>\r\n","_links":{"self":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts\/1182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/comments?post=1182"}],"version-history":[{"count":2,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts\/1182\/revisions"}],"predecessor-version":[{"id":1450,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts\/1182\/revisions\/1450"}],"wp:attachment":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/media?parent=1182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/categories?post=1182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/tags?post=1182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}