Software engineering basic principle and Java class

xiaoxiao2021-03-06  44

"Data Structures Using Java" Tsinghua University Press, D. S. Malik & P.S.NAIR, Yang Hao. This book is very good. I will study her carefully. Today, the first chapter ---- Software Engineering Basic Principle and Java Class

1: The software is a program running on a computer.

2: Otherwhere in mind to no longer use, in which a number of phases are experienced: this is the so-called software life cycle

3: Three basic stages of the software life cycle are: development phase, use phase and maintenance phase

4: Software creates in the development phase

5: In the software maintenance phase, you need to modify the errors in the software and enhance its function.

6: If the new version is no longer released, the software will gradually stop using it.

7: Demand analysis, design, implementation, testing, and debugging in the software development phase.

8: In the design phase, you need to design the algorithm, solve the problem.

9: Algorithm is a process of gradually solving problems in a limited time

10: Two famous design technologies are: structured design and object-oriented design

11: In structured design, the problem will be broken down into a sub-problem. When the child problem is solved, all sub-problems have been solved by the original problem.

12: In object-oriented design, the program is a collection of interactive objects.

13: Objects consist of data and operations on data.

14: Three basic principles for object-oriented design are: encapsulation, inheritance, polymorphism

15: In the implementation phase, you need to write and compile the code to achieve classes and methods in the design phase.

16: The front condition refers to the conditions that must be satisfied before the call function.

17: Conditions that must be met after the function call is completed

18: In the test phase, you want to test the correctness of the program to ensure that the program completes the task.

19: Debug is to find out and fix errors in the program.

20: Find the error in the program through a series of test cases.

21: Test cases include input information, user actions, or other initial conditions, as well as the desired output result.

22: There are two methods for testing: black box testing and white box testing.

23: When the algorithm analysis is performed, the number of operations to be performed is often required.

24: Set F is a function of n, the progressiveness is when the N infinity increases when F changes.

25: Class is a collection of fixed quantities components.

26: The class of the class is called a member of the class.

27: The member of the class is accessed by name.

28: In Java, Class is a reserved word.

29: Members of the class are divided into three categories: public, private, protected

30: Private members cannot access external access.

31: Public members can access outside of class.

32: By default: members of the class are private.

33: Members of the class can be methods or variables

34: If a class member is a variable, a declared method is similar to a declarative normal variable.

35: In Java, the class is a definition

36: Members of the class are called example methods.

37: Constructor ensures initialization of data when statement

38: The constructor is automatically performed when the class object is in its scope.

39: In shallow relics, two or more references to the same type points to the same object.

40: In deep relics, each reference variable points to its own object.

41: The scope of the reference variable is the same as the other variables. 42: The role of class members is partial.

43: The copy constructor is executed when an existing object instantial and initialization object is used.

44: Method toString is a public method with return values, it does not have parameters, returns the address of the String object

45: Method Print and Println Output Strings created by method toString

46: Method TOSTRING's default default creates a string, which contains the class name of the object and the hash code of the object.

47: When the class object exceeds the scope, the destructor is automatically executed.

48: A class has only one destructor, and there is no parameters.

49: The name of the destructor is Finalize.

50: You can create your own packages using the package statement

51: Java Implicit Use Reference this to represent the instance variables and methods of the class.

52: Class defined in another class is called an internal class.

52: If a data type indicates the logical properties, there is no specific implementation process, it is called an abstract data type.

转载请注明原文地址:https://www.9cbs.com/read-51648.html

New Post(0)