代码搜索:overloading
找到约 1,176 项符合「overloading」的源代码
代码结果 1,176
www.eeworm.com/read/182179/9212989
txt 3.txt
1、作用域public,private,protected,以及不写时的区别
答:区别如下:
作用域 当前类 同一package 子孙类 其他package
public √ √ √ √
protected √ √ √
www.eeworm.com/read/178378/9404861
cpp opconv.cpp
//: C12:Opconv.cpp
// From Thinking in C++, 2nd Edition
// at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Op overloading conversion
class Three {
www.eeworm.com/read/373369/9461342
java overloadingorder.java
//: initialization/OverloadingOrder.java
// Overloading based on the order of the arguments.
import static net.mindview.util.Print.*;
public class OverloadingOrder {
static void f(String s, in
www.eeworm.com/read/175135/9558408
h mytime1.h
// mytime1.h -- Time class before operator overloading
#ifndef MYTIME1_H_
#define MYTIME1_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m
www.eeworm.com/read/175135/9558425
h mytime2.h
// mytime2.h -- Time class after operator overloading
#ifndef MYTIME2_H_
#define MYTIME2_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m
www.eeworm.com/read/175135/9558431
h mytime0.h
// mytime0.h -- Time class before operator overloading
#ifndef MYTIME0_H_
#define MYTIME0_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m
www.eeworm.com/read/169058/9884072
java overloadingorder.java
//: initialization/OverloadingOrder.java
// Overloading based on the order of the arguments.
import static net.mindview.util.Print.*;
public class OverloadingOrder {
static void f(String s, in
www.eeworm.com/read/358682/10182068
h mytime1.h
// mytime1.h -- Time class before operator overloading
#ifndef MYTIME1_H_
#define MYTIME1_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m
www.eeworm.com/read/358682/10182080
h mytime2.h
// mytime2.h -- Time class after operator overloading
#ifndef MYTIME2_H_
#define MYTIME2_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m
www.eeworm.com/read/358682/10182085
h mytime0.h
// mytime0.h -- Time class before operator overloading
#ifndef MYTIME0_H_
#define MYTIME0_H_
class Time
{
private:
int hours;
int minutes;
public:
Time();
Time(int h, int m