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