The personal cloud will gradually replace the PC as individuals store personal content and access services from any device. A personal cloud provides access to files, photos, notes and other content from multiple devices. It allows individuals to define what data they store and share, what apps they use, and who can access their data and apps. Personal clouds connect to networks and access services to share data and messages with other personal clouds. By 2014, the personal cloud will become the primary way individuals access their digital content and services, replacing the PC.
This document discusses how cloud computing will affect the software industry. It notes that cloud computing and mobile computing are major IT trends that are changing the industry. The cloud allows software to be delivered as a service and accessed from any device, changing software business models and reducing barriers to entry. It also requires new skills around cloud architecture, security, and data analytics. The document outlines opportunities for software companies in areas like reduced startup costs, global distribution, and faster innovation cycles enabled by cloud infrastructure.
This document discusses the impact of cloud computing on the Asian IT industry. It outlines several key trends driving cloud adoption, including bring your own device (BYOD) policies, increased worker mobility, and the rise of mobile commerce. The cloud is changing how IT infrastructure is delivered and used. It also presents opportunities for small and medium enterprises to access technology through the subscription-based cloud model. While cloud computing provides benefits, issues around awareness, security, infrastructure limitations, and data protection must still be addressed for the technology to reach its full potential across Asia.
This document discusses key IT trends for co-creation, including mobile computing, cloud computing, social technologies, and intelligent devices. It notes that smartphone usage in Thailand is expected to grow significantly by 2015. Tablet sales are also increasing globally. By 2014, mobile access will become the most common way to access the internet. Social technologies and cloud computing, like cloud storage and Software as a Service (SaaS), are also trends. These technologies will impact industries and business models. Digital transformation and collaboration will be important. The presentation emphasizes innovating with others through cooperation.
Open source software has grown significantly and its impact is projected to reach $19 billion by 2012. Previously used mainly for desktop and infrastructure software, open source is now ubiquitous due to trends like cloud computing, software as a service, and its use by major companies like Facebook, Google, and Wikipedia. While open source was once focused on technology, the business model is shifting to service, support, training and customization.
18. การประกาศคลาส
โปรแกรมภาษาจาวาแต-ละโปรแกรมจะประกอบไปด$วยคลาสอย-างน$อยหน1ง
คลาส โดยม'ร+ปแบบการประกาศด+งน'I
[modifier] class Classname {
[class member]
}
• modifier ค/อคยเวรด (keyword) ของภาษาจาวาทใช$ในการอธบายระดบการเข$าถ1ง
(access modifier)
• class ค/อคยเวรดของภาษาจาวาเพ/อระบว-าเปนการประกาศคลาส
• Classname ค/อช/อคลาส
• class member ค/อเมธอดหร/อคณลกษณะ
ต+วอย@าง
public class Student {
}
19. การประกาศค1ณล+กษณะ
ค1ณล+กษณะของอ7อบเจกต9คอต+วแปรหรอค@าคงท'ซSOงประกาศภายในอ7อบ
O
เจกต9 โดยม'ร+ปแบบการประกาศด+งน'I
[modifier] dataType attributeName;
• modifier คอค'ย9เวร9ดของภาษาจาวาท'Oอธบายค1ณสมบ+ตต@างๆของต+วแปรหรอค@า
คงท'O
• dataType คอชนดข0อมRลซSOงอาจเปYนชนดข0อมRลพIนฐานหรอชนดคลาส
• attributeName คอชOอของค1ณล+กษณะ
ต+วอย@าง
public class Student {
public String id;
public String name;
public double gpa;
}
20. การประกาศเมธอด
ภาษาจาวาก6าหนดรRปแบบของการประกาศเมธอดท'อยRในคลาสไว0ด+งน'I
O @
[modifier] return_type methodName([arguments]) {
[method_body]
}
• modifier คอค'ย9เวร9ดของภาษาจาวาท'Oใช0อธบายระด+บการเข0าถSง
• return_type คอชนดข0อมRลของค@าท'จะม'การส@งกล+บ
O
• methodName คอชOอของเมธอด
• arguments คอต+วแปรท'Oใช0ในการร+บข0อมRลท'อ7อบเจกต9ส@งมาให0
O
• method_body คอค6าส+Oงต@างๆของภาษาจาวาท'อยR@ในเมธอด
O
21. ตวอย-างโปรแกรม
public class Student {
public String id;
public String name;
public double gpa;
public void setID(String ID) {
id = ID;
}
public void setName(String n) {
name = n;
}
public void setGPA(double GPA) {
gpa = GPA;
}
public void showDetails() {
System.out.println("ID: "+id);
System.out.println("Name: "+name);
System.out.println("GPA: "+gpa);
}
}
22. เมธอดท'ชOอ main()
O
โปรแกรมจาวาประย1กต9 (Java Application) จะเรOมต0นการท6างานในคลาสท'O
ม'เมธอดท'OชOอ main โดยม'รปแบบของเมธอดด+งน'I
R
public static void main(String args[]) {
[method_body]
}
36. ตวอย-างโปรแกรม
class Ball {
public void throwBall() { }
}
class SoccerBall extends Ball {
public void throwBall() {
System.out.println("Throwing soccerball");
}
}
class TennisBall extends Ball {
public void throwBall() {
System.out.println("Throwing tennisball");
}
}
public class TestBall {
public static void main(String args[]) {
Ball b1 = new Ball();
SoccerBall b2 = new SoccerBall();
Ball b3 = new SoccerBall();
}
}
37. คลาสแบบ abstract
คลาสทม modifier เปน abstract หมายความว@าคลาสน+นย+งเปYนคลาสท'O
I
ไม@สมบRรณ9 โดยม'เมธอดแบบ abstract ซSงเปYนเมธอดท'ย+งไม@สมบRรณ9
O O
อย@างน0อยหนSงเมธอดอยR@ในคลาส
O
รRปแบบของเมธอดแบบ abstract
[modifier] abstract return_type methodName([arguments]);
คลาสแบบ abstract ก6าหนดขSIนมาเพOอให0คลาสอOนสบทอด โดยคลาสท'มา
O
สบทอดจะต0องก6าหนดบล7อกค6าส+งในเมธอดท'ย+งไม@สมบRรณ9
O O
เราไม@สามารถสร$างออบเจกตของคลาสแบบ abstract ได$
38. ตวอย-างโปรแกรมแสดงคลาสแบบ abstract
public abstract class Student {
protected String id;
protected String name;
protected double gpa;
public void setID(String ID) {
id = ID;
}
public void setName(String n) {
name = n;
}
public void setGPA(double GPA) {
gpa = GPA;
}
public abstract void showDetails();
}
39. ตวอย-างคลาสท'Oสบทอดมาจากคลาสแบบ abstract
public class FullTimeStudent extends Student {
private int credit;
private final int MAX_YEAR = 4;
public FullTimeStudent(int c) {
credit = c;
}
public void showDetails() {
System.out.println("ID: "+id);
System.out.println("Name: "+name);
System.out.println("GPA: "+gpa);
System.out.println("Credit: "+credit);
}
}
40. อนเตอรเฟส
อนเตอร9เฟส (interface) ม'ล+กษณะคล0ายก+บคลาสแบบ abstract แต@จะ
ประกอบด0วยเมธอดท'ย+งไม@สมบRรณ9เท@าน+น
O I
รRปแบบของอนเตอร9เฟส
[modifier] interface InterfaceName {
[methods();]
}
อนเตอร9เฟสก6าหนดขSIนมาเพOอให0คลาสอOนน6าไปใช0งานโดยใช0ค'ยเวร9ด
9
implements โดยม'รปแบบด+งน'I
R
[modifier] class ClassName implements InterfaceName {
[methods();]
}
42. ตวอย-างอนเตอรเฟส
public interface Student {
public void setID(String ID);
public void setName(String n);
public void setGPA(double GPA);
public void showDetails();
}
43. ตวอย-างคลาสท'O implements อนเตอรเฟส
public class PartTimeStudent implements Student {
private String id;
private String name;
private double gpa;
private int credit;
private final int MAX_YEAR = 8;
public PartTimeStudent(int c) {
credit = c;
}
public void setID(String ID) {
id = ID;
}
public void setName(String n) {
name = n;
}