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