-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathW5day1.sol
More file actions
26 lines (24 loc) · 730 Bytes
/
W5day1.sol
File metadata and controls
26 lines (24 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
contract Parent{
function SayHello() public pure returns(string memory){
return "Hello World";
}
function SayBye() public pure virtual returns(string memory){
return "Bye World";
}
function SayYes() public pure virtual returns(string memory){
return "Yes";
}
}
contract Child is Parent{
function SayBye() public pure override returns(string memory){
return "Bye 2World";
}
/*function SayYes() public pure override returns(string memory){
return "Not a No";
}*/
function SayYes() public pure override returns(string memory){
return super.SayYes();
}
}