Class LayoutClass Layout Copyright © 2020 by Stephen C. Dewhurst and Daniel Saks 1 Class Layout Steve Dewhurst Semantics Consulting, Inc. www.stevedewhurst.com 1 Copyright © 2020 by Stephen C. Dewhurst and Daniel Daniel Saks C++ Classes Only non-static data declarations in a class definition add anything to the size of class objects. class HR { public: ~~~ void terminator(Salary *, Hourly *, Temp *); private: Stephen C. Dewhurst and Daniel Saks 1 7Class Layout Copyright © 2020 by Stephen C. Dewhurst and Daniel Saks 2 sizeof(Class Object) sizeof applied to the HR class yields the same result as sizeof applied0 码力 | 51 页 | 461.37 KB | 6 月前3
JAVA 应用与开发 - 高级类特性现�����的方法��为抽象方法� 抽象方法������abstract��� ��抽象方法的类����为抽象类�����abstract��� CODE ± 抽象类示例 1 public abstract class Animal { //定义为抽象类 2 private int age; 4 public void setAge(int age) { 5 this.age = age; 6 } 8 return age; 10 } 12 public abstract void eat(); //抽象方法 13 } 4 29 ����类 CODE ± 抽象类继承 1 public class Person extends Animal { 2 private String name; 3 public void setName(String name) { 4 this.name } 9 public void eat() { //重写方法 10 System.out.println("��→��→���→��→���"); 11 } 12 } 1 public class Bird extends Animal { 2 public void fly(){ 3 System.out.println("我���!"); 4 } 5 public void eat(){0 码力 | 61 页 | 677.55 KB | 1 年前3
Java 应用与开发 - 类加载和反射个 时候就必须用到反射——运行时动态加载需要加载的对象。 一个例子 Struts2 框架开发中会在 struts.xml 里配置 Action 1class="ouc.j2ee.action.LoginAction" method="execute"> 2 index.jsp 3class 属性创建 LoginAction 的实例,并用 invoke 方法来调用 execute 方法。 这个过程是基于 Java 反射框架完成的。 大纲 反射 类的加载、连接和初始化 类加载器 使用反射生成并操作对象 本节习题 反射的主要用途 O 依赖注入 有两个组件 A 和 B,A 依赖于 B。 1 public class A { 2 public setB() 方法: 1 public class A { 2 private B b; 3 public void importantMethod() { 4 b.usefulMethod(); 5 ... 6 } 8 public void setB(B b) { 9 this.b = b; 10 } 11 } 1 class="ouc.j2ee.sample 0 码力 | 46 页 | 714.40 KB | 1 年前3
Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2023.11)write : • Sequence diagram • Usecase diagram • Class diagram • Object diagram • Activity diagram • Component diagram • Deployment diagram • State diagram • Timing diagram The following non-UML Data • Network diagram (nwdiag) • Wireframe graphical interface • Archimate diagram • Specification and Description Language (SDL) • Ditaa diagram • Gantt diagram • MindMap diagram • Work Breakdown Structure diagram • Mathematic with AsciiMath or JLaTeXMath notation • Entity Relationship diagram Diagrams are defined using a simple and intuitive language. 1 SEQUENCE DIAGRAM 1 Sequence Diagram Creating0 码力 | 551 页 | 7.79 MB | 1 年前3
PlantUML 1.2021.3 Language Reference Guidewrite : • Sequence diagram • Usecase diagram • Class diagram • Object diagram • Activity diagram • Component diagram • Deployment diagram • State diagram • Timing diagram The following non-UML Data • Network diagram (nwdiag) • Wireframe graphical interface • Archimate diagram • Specification and Description Language (SDL) • Ditaa diagram • Gantt diagram • MindMap diagram • Work Breakdown Structure diagram • Mathematic with AsciiMath or JLaTeXMath notation • Entity Relationship diagram Diagrams are defined using a simple and intuitive language. 1 SEQUENCE DIAGRAM 1 Sequence Diagram 1.10 码力 | 416 页 | 4.33 MB | 1 年前3
PlantUML 1.2021.2 Language Reference Guidewrite : • Sequence diagram • Usecase diagram • Class diagram • Object diagram • Activity diagram • Component diagram • Deployment diagram • State diagram • Timing diagram The following non-UML Data • Network diagram (nwdiag) • Wireframe graphical interface • Archimate diagram • Specification and Description Language (SDL) • Ditaa diagram • Gantt diagram • MindMap diagram • Work Breakdown Structure diagram • Mathematic with AsciiMath or JLaTeXMath notation • Entity Relationship diagram Diagrams are defined using a simple and intuitive language. 1 SEQUENCE DIAGRAM 1 Sequence Diagram 1.10 码力 | 398 页 | 4.17 MB | 1 年前3
PlantUML 1.2021.1 Language Reference Guidewrite : • Sequence diagram • Usecase diagram • Class diagram • Object diagram • Activity diagram • Component diagram • Deployment diagram • State diagram • Timing diagram The following non-UML Data • Network diagram (nwdiag) • Wireframe graphical interface • Archimate diagram • Specification and Description Language (SDL) • Ditaa diagram • Gantt diagram • MindMap diagram • Work Breakdown Structure diagram • Mathematic with AsciiMath or JLaTeXMath notation • Entity Relationship diagram Diagrams are defined using a simple and intuitive language. 1 SEQUENCE DIAGRAM 1 Sequence Diagram 1.10 码力 | 392 页 | 4.12 MB | 1 年前3
Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2020.23)write : • Sequence diagram • Usecase diagram • Class diagram • Activity diagram • Component diagram • State diagram • Object diagram • Deployment diagram • Timing diagram The following non-UML graphical interface • Archimate diagram • Specification and Description Language (SDL) • Ditaa diagram • Gantt diagram • MindMap diagram • Work Breakdown Structure diagram • Mathematic with AsciiMath JLaTeXMath notation Diagrams are defined using a simple and intuitive language. 1 SEQUENCE DIAGRAM 1 Sequence Diagram 1.1 Basic examples The sequence -> is used to draw a message between two participants0 码力 | 311 页 | 3.15 MB | 1 年前3
PlantUML 1.2020.22 Language Reference Guidewrite : • Sequence diagram • Usecase diagram • Class diagram • Activity diagram • Component diagram • State diagram • Object diagram • Deployment diagram • Timing diagram The following non-UML graphical interface • Archimate diagram • Specification and Description Language (SDL) • Ditaa diagram • Gantt diagram • MindMap diagram • Work Breakdown Structure diagram • Mathematic with AsciiMath JLaTeXMath notation Diagrams are defined using a simple and intuitive language. 1 SEQUENCE DIAGRAM 1 Sequence Diagram 1.1 Basic examples The sequence -> is used to draw a message between two participants0 码力 | 299 页 | 3.07 MB | 1 年前3
PlantUML 을사용해서 UML 그리기 - PlantUML 언어참조가이드(Version 1.2023.11)
Data • Network diagram (nwdiag) • Wireframe graphical interface • Archimate diagram • Specification and Description Language (SDL) • Ditaa diagram • Gantt diagram • MindMap diagram • Work Breakdown Breakdown Structure diagram • Mathematic with AsciiMath or JLaTeXMath notation • Entity Relationship diagram 간단하고직관적인언어를사용해다이어그램을정의할수있습니다. 1 시퀀스다이어그램 1 시퀀스다이어그램 Creating sequence diagrams with PlantUML intuitive syntax that PlantUML employs. This well-thought-out design means that even those new to diagram creation find it easy to grasp the basics quickly and without hassle. • Text-to-Graphic Correlation:0 码力 | 552 页 | 7.88 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













