Learn Java Programming - Anonymous Inner Class Implementing an Interface Tutorial

preview_player
Показать описание
An anonymous inner class is a nested class defined without any name. An anonymous class is entirely dependent upon either a superclass or interface in order to work properly. This tutorial will focus on the version that is dependent upon an interface. You may also want to brush up on your Runnable skills by watching my Creating a Thread Part Three Tutorial. Also I highly recommend understanding all the concepts in my Anonymous Inner Class Extending a Superclass Tutorial as well.
Рекомендации по теме
Комментарии
Автор

thank you for giving such nice tutorials! i was looking for a way of implementing an AbstractCollection let s say NewCollection that keeps the size of a collection within provided upper and lower bounds.
so i am supposed to create two constructors, one will be like NewCollection(Collection, low:int, up:int) supplying the collection to be decorated and another one NewCollection(size:int, low:int, up:int). in which the delegatee must be created.
I have no clue!. please can you let me know what to do?

olafgilo
visit shbcf.ru