当前位置:一号简历网 >

面试 >面试笔试 >

adobe公司最新笔试真题

adobe公司最新笔试真题

1、(10%) what is the rule of class D_*,UserClass, and client class of D_* and UserClass to access the member of class B?
class B
{/*……..*/};
class D_pri:private B {/**…….*/}
class D_Publ: public B {/**….*/}
class UserClass
{B b;/**..*/}
2 write the output
#include <iostream>
#include <string>
using namespace std;
void println(const std::string& msg)
{
std:cout<<msg<<’’;
}
class Base{
public:
Base() {println(“Base::Base()”);Virt();}
Void f(){println(“Base::f()”);Virt();}
Virtual void virt(){println(“Base()::virt()”);}
};
class Derived:public Base
{
Derived(){println(“Derived:: Derived ()”);Virt();}
Virtual void virt(){println(“Derived ()::virt()”);}
};
int main(int argc,char* argv[])
{
Derived d;
Base *pB=&d;
PB->f();
}
2.1 (5%) what is the output of the code “pB->f();” above?
2.2 (5%) what is the output of the code “Dervied d;” above?

adobe公司最新笔试真题
标签: adobe 真题 笔试
  • 文章版权属于文章作者所有,转载请注明 https://yhjlw.com/mian/bishi/5rdnz.html