代码搜索:methods
找到约 10,000 项符合「methods」的源代码
代码结果 10,000
www.eeworm.com/read/403009/11524831
cpp acctabc.cpp
// acctabc.cpp -- bank account class methods
#include
#include
using std::cout;
using std::ios_base;
using std::endl;
#include "acctabc.h"
// Abstract Base Class
AcctA
www.eeworm.com/read/158649/11595156
java event.java
//: c08:controller:Event.java
// The common methods for any control event.
package c08.controller;
abstract public class Event {
private long evtTime;
public Event(long eventTime) {
ev
www.eeworm.com/read/158649/11595336
java readonly.java
//: c09:ReadOnly.java
// Using the Collections.unmodifiable methods.
// {ThrowsException}
import java.util.*;
import com.bruceeckel.util.*;
public class ReadOnly {
static Collections2.String
www.eeworm.com/read/156908/11753358
c mrsroot.c
/*
* MIRACL methods for modular exponentiation
* mrpower.c
*
* Copyright (c) 1988-1999 Shamus Software Ltd.
*/
#include
#include "miracl.h"
BOOL nres_sqroot(_MIPD_
www.eeworm.com/read/344239/11894298
java typesforsets.java
//: containers/TypesForSets.java
// Methods necessary to put your own type in a Set.
import java.util.*;
class SetType {
int i;
public SetType(int n) { i = n; }
public boolean equals(Obj
www.eeworm.com/read/344239/11894404
java readonly.java
//: containers/ReadOnly.java
// Using the Collections.unmodifiable methods.
import java.util.*;
import net.mindview.util.*;
import static net.mindview.util.Print.*;
public class ReadOnly {
s
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/11897831
java games19.java
// interfaces/Games19.java
// TIJ4 Chapter Interfaces, Exercise 19, page 342
/* Create a framework using Factory Methods that performs both coin
* tossing and dice tossing.
*/
import java.util.*;