Main concept of object oriented language
1) CLASSES :
Classes are the basis for any object oriented system classes have well defined boundaries and describe a set of objects that share similar properties and perform similar functions. Classes can be reused within a system or they can be used while developing a new system.
OBJECT ORIENTED PROGRAMMING
Before we talk about object oriented programming, we must know about all the programming like structured, procedural etc.
An Array can be defined as a finite ordered set of homogeneous elements. Here, finite means that there is a specific number of elements in an array. By the term ordered we means that elements of array are arranged in a sequence so that first, second, third etc. The homogeneous property of array means that all elements in the array must be of the same type. It is use to handle a large amount of data without the need to declare many indivisual variable. The array elements are store in a contigious memory location.
1)Documentation Section---Include Comment
2)Link Section----Include headerFile
3)Definition Section---Include symbolic
Constant means fix value we cannot change or we can say it’s a unchangeable value. Constant values are used in the program we cannot change the value during execution.After the initialize of the variable we can set constant value to the variable like this…….int a; a=12;
The final modifiers
Final modifier is very versatile
- When the final modifier is applied to any class, it means that the class cannot be subclassed
- When it is applied to any variable, it means that the variable is constant.
- When it is applied to any method, it means that the method cannot overridden by sub classes.
Good is a subjective criteria and denotes situation whereby a program can completely meet with all the user specifications and run without error under all given circumstances. Good programming is the practice of constructing and implementing quality programs within an acceptable time span. Once the program is written, they are used in their operating environment for a period which may span ten or more years .During this period of time, programs will be subject to any alternations or enhancements to reflect changing needs of users.
A program is a set of instructions to be executed by the computer to accomplish a particular task. While writing a program one has to take care of data which the program will process and generate information.
Before we talk about data type first we know about variable because data type is used with variable. Without variable the meaning of the data type is nothing, it's incomplete. Data types are used when you create variable in the program. Each variable is assigned a data type.