N
needin4mation
Just learning about interfaces and had a probably simple question.
If a class inherits from an Interface, does this guarantee that the
class will have the methods defined in the Interface? I know this is
supposed to be true from what I read, but what I'm really asking is
that if a class implements an interface and it does not somewhere in
that class implement the methods, properties, etc. (all of them) in
that class, will that cause the program to not compile? Somewhere in
my class I have to have a reference to all the methods of the
Interface, right?
Thank you for any help.
If a class inherits from an Interface, does this guarantee that the
class will have the methods defined in the Interface? I know this is
supposed to be true from what I read, but what I'm really asking is
that if a class implements an interface and it does not somewhere in
that class implement the methods, properties, etc. (all of them) in
that class, will that cause the program to not compile? Somewhere in
my class I have to have a reference to all the methods of the
Interface, right?
Thank you for any help.