Data Structure: Format Data Array File Record
Data Structure: Format Data Array File Record
Data Structure: Format Data Array File Record
Data structure
A data structure is a specialized format for organizing and storing data.
General data structure types include the array, the file, the record, the table,
the tree, and so on. Any data structure is designed to organize data to suit a
specific purpose so that it can be accessed and worked with in appropriate
ways. In computer programming, a data structure may be selected or
designed to store data for the purpose of working on it with various algorithms.
Examples:
1. Data structure is used only for organizing and storing data and types of data
structures
Primitive - way of storing data by the system
Derived- nanggaling
Non-linear list - data item is connected to several other data items like trees
Array
A collection of data elements
A data static structure
List
A linked list is a sequence of data structures, which are connected together via links.
Heap
Heap is a special case of balanced binary tree data structure
Object-oriented programming
(OOP)
Standard coding – if there is another programmer to follow know
how to decode the program
type of computer programming (software design) in which programmers
types of operations (functions) that can be applied to the data structure.
Abstraction: The process of picking out (abstracting) common features of objects and
procedures.
Class: A category of objects. The class defines all the common properties of the
different objects that belong to it.
Encapsulation: The process of combining elements to create a new entity. A
procedure is a type of encapsulation because it combines a series of computer
instructions.
Information hiding: The process of hiding details of an object or function.
Information hiding is a powerful programming technique because it reduces complexity.
Inheritance: a feature that represents the "is a" relationship between different
classes.
Interface: the languages and codes that the applications use to communicate with
each other and with the hardware.
Messaging: Message passing is a form of communication used in parallel
programming and object-oriented programming.
Object: a self-contained entity that consists of both data and procedures to
manipulate the data.
Polymorphism: A programming language's ability to process objects differently
depending on their data type or class.
Procedure: a section of a program that performs a specific task.
AVA
JAVA- is language
OOP concepts in Java are the main ideas behind Java’s Object Oriented
Programming. They are an abstraction, encapsulation, inheritance,
and polymorphism.
JAVA
Java is a general-purpose computer programming language that is concurrent, class-
based, object-oriented, and specifically designed to have as few implementation dependencies
as possible.
JAVA CODE
CONDITION – IF, CASE, DO WILL, FOR, LOOP = WHAT DO YOU WANT TO HAPPEN
Java was originally developed by James Gosling at Sun Microsystems (which has since been
acquired by Oracle Corporation) and released in 1995 as a core component of Sun
Microsystems’ Java platform. The language derives much of its syntax from C and C++, but it
has fewer low-level facilities than either of them.
EXAMPLES:
1. class First {
2. public static void main(String[] arguments) {
3. System.out.println("Let's do something using Java
technology.");
4. }
5. }
1. class Integers {
2. public static void main(String[] arguments) {
3. int c; //declaring a variable
4.
5. /* Using for loop to repeat instruction execution */
6.
7. for (c = 1; c <= 10; c++) {
8. System.out.println(c);
9. }
10. }
11. }
Java programming source code
1. class HelloWorld
2. {
3. public static void main(String args[])
4. {
5. System.out.println("Hello World");
6. }
7. }