- Super keyword can be used to access the super class constructor from the subclass constructor.
- Super must be the first function in the subclass constructor.
- It is the first function to be executed in the subclass constructor.
- Super function will access the super class constructor according to the matching arguments.
- It can also be used to access the members of the Super class.
- When method overriding is done,then super can be used to access the overrided method of super class from subclass.
July 27, 2011
Use of super keyword in Java
My understanding of Inheritance in Java
- A class can be inherited by using the keyword extends.
- The class which is inherited is called Super class or Parent class.The class which does the inheritance is called Subclass.
- The private members of the super class are cannot be accessed by the sub class.
July 13, 2011
My definition for Process
- A Process is a set of actions or activities that is being carried to acheive the goal.
- It should be processed and managed to find the best way to attain the solution.
- A process has to be managed in such a way that it can be carried out independent of same people.
July 11, 2011
Things to remember while developing a New programming language
- Varibles
- Keywords
- Operators
- Syntax
- Conditional statements
- Looping statements
- Predefined functions
- Garbage Collection (GC) --> It frees the memory of the unused variables.
- Data Structures
Advantages of OOPS
- Effective memory management
- Class
- Objects
- Encapsulation
- Polymorphism
- Reuse --> Time management, Resourse management
- Easy to Maintain/Understand/Implement
Disadvantages of Procedural languages
- Procedural languages are difficult to relate with the real world objects.
- Procedural codes are very difficult to maintain, if the code grows larger.
- Procedural languages does not have automatic memory management as like in Java. Hence, it makes the programmer to concern more about the memory management of the program.
- The data, which is used in procedural languages are exposed to the whole program. So, there is no security for the data.
Examples of Procedural languages :
- BASIC
- C
- Pascal
- FORTRAN
July 08, 2011
Points to remember while developing a program
- Don't Assume yourself about the result of the program.
- Donot call any function inside any loop.This may reduce the performance and processing speed of the program.
- Documenting the code is important when we design a program. It should be done before the classes and methods.
- Documentation helps to maintain the program and i'll help for the better understanding of program.
July 07, 2011
Points to consider while designing a Optimal solution
- The program should be opt for various Inputs.
- Minimize the number of loops in the program.
- Minimize the use of Variables.
- Consider the memory usage of the program.
- Do proper testing in the program.
Subscribe to:
Posts (Atom)
Connecting Java program to Database
It is very simple to establish a connection to the Database from a Java program Class.forName("com.mysql.jdbc.Driver...
-
It is very simple to establish a connection to the Database from a Java program Class.forName("com.mysql.jdbc.Driver...
-
Procedural languages are difficult to relate with the real world objects. Procedural codes are very difficult to maintain , if the code ...