Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

important ques about class interface...

Former Member
0 Kudos

Hi all,

Please answer these questions about class interface (t-code) se24...

When you see interface CX_SY_CONVERSION_NO_NUMBER and click on the method tab then there are some methods which are listed in blue and the last one CONSTRUCTOR is not in blue why?

ques 2) why is the first method enclosed in < >?

ques 3) how do you use a class interface in your programs?

ques 4) classes have interfaces and methods of the same name..Why? It is confusing me? What is the difference between an interface and a method? Why do we need interface when we have classes and methods?

Thanks

Charles.

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

For the first question, the methods is blue, are the methods which are inherited from the superclass of the class. The CONSTRUCTOR is not blue because it belongs to the class which you are currect viewing.

2) It is not a method, it is a class, one of the superclasses of the class that you are viewing, directly underneath this, you should see the methods of the that class which are inherited and hence, they are blue.

3) and 4) You should really read the help on OO concepts.

http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm

Regards,

RIch Heilman

Former Member
0 Kudos

Thanks Rich,

I know C++.... there we dont have interfaces (only classes and methods).. so is this SAP thing? What is it used for?

Charles.

Former Member
0 Kudos

Charles,

Do you have any Idea on Abstarct classes in JAVA?.Interfaces are also Just like Abstarct classes.

Methods which are more frequently using will keep in one interface.So we will have reusability of methods.We can not create object for that.

Pls. mark if useful.