topval函数难道就不是类成员了?竟然total函数可以访问,那topval函数为什么不就能访问了.类的数据封装是对类外而言的,作为 类的成员函数 topval 跟 total 定位是一模一样的.topval 完全没有必要调用total
如果有:class stock{ Private:doubletotal_wal; Public:double...
1个回答
相关问题
-
急1.import java.util.*; 2.3.public class NameList { 4.private
-
1.给出如下代码:class Test{ private int m; public static void fun()
-
C++矩阵错误class Demo{public:\x05Demo();\x05~Demo();\x05double *
-
谁能详细地给我讲解一下这个程序public class MoneyDemo {private final String[
-
#include class A { public: int n; }; class B:virtual public
-
______ the public schools with the private schools,the guide
-
His private actions are in direct __________ with his public
-
public class Test
-
public class Thread {
-
下面的程序中 public Trangle(double a,double b,double c)能这样定义吗?说清楚点