![]() On the other hand abstract classes can be be extended, and their subclasses - instantiated, so you can have instance-specific, changing properties. For example, “Clonable is capable of cloning an object”, “Drawable is capable of drawing a shape”, etc. Since interfaces cannot be instantiated, you can only have static and not-changing properties. i.e., third-party vendors need to implement it fullyĬonsider using the interface when our problem makes the statement “A is capable of ”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |