代码搜索:Exercise

找到约 10,000 项符合「Exercise」的源代码

代码结果 10,000
www.eeworm.com/read/344238/11897470

java cookiemonster.java

// access/cookie2/CookieMonster.java // TIJ4 Chapter Access, Exercise 4, page 227 // Show that protected methods have package access but are not public. /* In directory Cookie2: * //access/cooki
www.eeworm.com/read/344238/11897530

java ex10.java

// polymorphism/Ex10.java // TIJ4 Chapter Polymorphism, Exercise 10, page 290 /* Create a base class with two methods. In the first method, call the second * method. Inherit a class and override th
www.eeworm.com/read/344238/11897575

java ex6.java

// innerclasses/Ex6.java // TIJ4 Chapter Innerclasses, Exercise 6, page 353 /* Create an interface with at least one method, in its own package. Create * a class in a separate package. Add a protec
www.eeworm.com/read/344238/11897620

java ex15.java

// innerclasses/Ex15.java // TIJ4 Chapter Innerclasses, Exercise 15, page361 /* Create a class with a non-default constructor and no default constructor. * Create a second class that has a method t
www.eeworm.com/read/344238/11897662

java device.java

// reusing/Device.java // TIJ4. Chapter Reusing, Exercise 15, page 260 /* Create a class inside a package. Your class should contain a protected * method. Outside of the package, try to call the pr
www.eeworm.com/read/344238/11897688

java chess.java

// reusing/Chess.java // TIJ3 Chapter Reusing, Exercise 6, page 246 /* Using Chess.java, prove the statements in the previous paragraph. (If you * don't call the base class constructor in BoardGame
www.eeworm.com/read/344238/11897693

java e.java

// reusing/E.java // TIJ4 Chapter Reusing, Exercise 4, page 245 /* Prove that base-class constructors are (a) always called and (b) called before * derived-class constructors. */ import static
www.eeworm.com/read/344238/11897697

java detergentdelegation.java

// reusing/DetergentDelegation.java // TIJ4 Chapter Reusing, Exercise 11, page 248 // Modify Detergent.java so that is uses delegation. import static net.mindview.util.Print.*; class Cleanser {
www.eeworm.com/read/344238/11897727

java scarab.java

// reusing/Scarab.java // TIJ4 Chapter Reusing, Exercise 24, page 274 /* In Beetle.java, inherit a specific type beetle from class Beetle, following * the same format as the existing classes. Trace
www.eeworm.com/read/344238/11897822

java ex14.java

// interfaces/Ex14.java // TIJ4 Chapter Interfaces, Exercise 14, page 330 /* Create three interfaces, each with two methods. Inherit a new interface * that combines the three, adding a new method.