From e23a7099daaf1f9d3d0776c57eeaf587e0c7ad5b Mon Sep 17 00:00:00 2001 From: nasicurious Date: Tue, 9 Aug 2022 02:44:23 -0700 Subject: [PATCH] Delete 'LvalueRefrence/Session1-4.cpp' --- LvalueRefrence/Session1-4.cpp | 46 ----------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 LvalueRefrence/Session1-4.cpp diff --git a/LvalueRefrence/Session1-4.cpp b/LvalueRefrence/Session1-4.cpp deleted file mode 100644 index 2f7923b..0000000 --- a/LvalueRefrence/Session1-4.cpp +++ /dev/null @@ -1,46 +0,0 @@ -#include -using namespace std; -class Test -{ - -private: -int _a; -int& _b=_a; - - -public: - -Test() -{ - _a = 5; - cout << "Normal constructor"<< endl; -} -Test(const Test& rhs) -{ - _a = rhs._a; - cout << "copy constructor"<< endl; -} -void printValue() const -{ - - cout << _a << "---" << endl; -} -void setA (int a) -{ - _a =a; -} -}; -void temp(const Test& t) -{ - - t.printValue(); -} -int main() -{ - Test t; - temp(t); - t.printValue(); - - - return 0; -} \ No newline at end of file