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...

What is an interface in ooabap?

Answer Posted / Janpriya Gaur

"An interface in SAP ABAP (Object Oriented) defines a contract or blueprint for classes that want to follow a specific pattern or set of methods. Interfaces do not have instances, and they cannot be executed on their own. Instead, they are implemented by classes to ensure that the implementing classes adhere to certain rules or method signatures.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, if_example is an interface that defines two methods. zcl_implementer is a class that implements this interface and provides its own implementation for both methods."

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