Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is it mandatory to implement all methods of interface in the class which includes interface?

Answer Posted / Amit Prasad Singh

"Yes, when a class implements an interface in SAP ABAP (Object Oriented), it must provide its own implementation for every method defined in that interface. Failing to do so will result in a compilation error. Here's an example:nn```abapnINTERFACE if_example.n METHODS: method1,n method2.nENDINTERFACEnCLASS zcl_implementer IMPLEMENTATION OF if_example.n METHOD method1.n .n ENDMETHODn METHOD method2.n .n ENDMETHODn``` In the example above, zcl_implementer implements if_example and provides an implementation for both methods defined in the interface. "

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category