This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>AWS Technical Essentials v4.1</title> | |
| <meta http-equiv="refresh" content="10,URL=/rds.php" /> | |
| <link href="css/bootstrap.min.css" rel="stylesheet"> | |
| <link href="css/style.css" rel="stylesheet"> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| class Pizza: | |
| """ | |
| ------------------------------------------------- | |
| | method | |
| ------------------------------------------------- | |
| | self is reference on instance | |
| | must attacth the self in first parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| class Pizza: | |
| """ | |
| ------------------------------------------------- | |
| | method | |
| ------------------------------------------------- | |
| | self is reference on instance | |
| | must attacth the self in first parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Pizza: | |
| """ | |
| ------------------------------------------------- | |
| | method | |
| ------------------------------------------------- | |
| | self is reference on instance | |
| | must attacth the self in first parameters | |
| """ | |
| def __init__(self, extratopping = ""): | |
| self.topping = "tomato sauce, chopped sausage" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1. inisialisasi class dengan object | |
| myObj = myClass() | |
| myObj.myMethod() | |
| # 2 inisialisasi class tanpa object | |
| myClass().myMethod() | |
| # 3. membuat objek tanpa instance | |
| myObj = myClass | |
| myObj.myMethod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Pizza: | |
| """ | |
| ------------------------------------------------- | |
| | method | |
| ------------------------------------------------- | |
| | self is reference on instance | |
| | must attacth the self in first parameters | |
| """ | |
| def __init__(self, extratopping = ""): | |
| self.topping = "tomato sauce, chopped sausage" |