![]() ![]() } What is composition in OOP? Why should you use it?Ĭomposition is a mechanism that allows an instance or object of a class to contain instances of the same or other classes. Write the members of the supplier class here Write the members of the customer class here To implement inheritance in C#, you should use the extends keyword as shown in the code snippet given below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |