#include <iostream>
using namespace std;
class A{
int x ;
public:
A(): A(0){
cout << "Constructor#1"<<endl ;
}
A(int n){
x = n ;
cout << "constructor#2"<<endl ;
}
};
int main(){
A a ;
return 0 ;
}
'');">
تحميل الصورة
الأجوبة
output:
constructor#2
constructor#1
success
تم تقديم إجابتك بنجاح
success
تم تعديل الإجابة، سيتم نشرها بعد مراجعة الإدارة