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
| public interface Student { | |
| default void readBook(){ | |
| System.out.println("reading book"); | |
| } | |
| } |
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
| //interface use class | |
| public class GoSam implements Student { | |
| public static void main(String ar[]){ | |
| GoSam gosam = new GoSam(); | |
| gosam.readBook(); | |
| } | |
| } |
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>ttttttttttt</title> | |
| <script src="./lib/json2.js"></script> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
| <script type="text/javascript" src="./lib/underscore.js"></script> |
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>collection</title> | |
| <script src="./lib/json2.js"></script> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
| <script type="text/javascript" src="./lib/underscore.js"></script> | |
| <script src="./lib/mustache.js"></script> |
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>collection</title> | |
| <script src="./lib/json2.js"></script> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
| <script type="text/javascript" src="./lib/underscore.js"></script> | |
| <script src="./lib/mustache.js"></script> |
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> | |
| <script src="./lib/json2.js"></script> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
| <script type="text/javascript" src="./lib/underscore.js"></script> | |
| <script src="./lib/mustache.js"></script> | |
| <script type="text/javascript" src="./lib/backbone.js"> </script> | |
| <title></title> | |
| </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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Backbone.js Book Library</title> | |
| <link rel="stylesheet" type="text/css" href="css/screen.css"> | |
| </head> | |
| <body> |
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
| <!-- | |
| 맴버변수를 this를 사용해서 선언했기 때문에 | |
| 외부에서도 접근이 가능하다. | |
| --> | |
| <script type="text/javascript"> | |
| function Tune(song, artist){ | |
| this.title = song; | |
| this.aritist = artist; | |
| this.concat = function(){ |
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
| <script type="text/javascript"> | |
| function Tune(song, artist){ | |
| var title = song; | |
| var aritist = artist; | |
| this.concat = function(){ | |
| return title + " " + aritist; | |
| } | |
| } | |
| window.onload = function(){ |
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
| public class Test2 { | |
| public static void main(String ar[]){ | |
| Runnable r1 = new Runnable() { | |
| @Override | |
| public void run() { | |
| System.out.println("old Java way"); | |
| } | |
| }; |