Object Oriented Programming – Java OOPs Concepts With Android training in Chandigarh
Object Oriented Programming of Java
Android training in Chandigarh is here to give the information about Java Concept of object oriented programming. It is the method of designing software in which the entire software design is distributed in the object and class, while the complete software programming schedule is distributed in C programming.
The design of structural programming is a great program that has thousands of line codes, the design programming language of the structure is perfect, because there are many functions present in the function. A mistake, find that is the mistake and it is very difficult to fix the mistake, due to which the use of object-oriented programming is very large Because regardless of how big the program is, the whole program is divided into class and object and the class and with the help of the object, the same code can be used repeatedly and even if there is a mistake, the problem can be solved by correcting the same class code only in the class that has been faulted.
It has two advantages: First of all, the same code can be used repeatedly with the help of class and object, which reduces the size of the program and secondly it becomes very easy to find mistakes in the program. This is because the class which has made a mistake can only correct the mistake of that class and free the whole program from the mistakes.
Apart from this, the object-oriented programming is divided into classes and objects, reducing the complexity of the code, which makes it easy to understand and read object-oriented programming.
In above, Android training in Chandigarh have give you introduction of java object oriented language and now android developer given the detail of Java OOPS concepts. Java also follows all object oriented technologies like object oriented principles. Let's try to know about these principles.
In above, Android training in Chandigarh have give you introduction of java object oriented language and now android developer given the detail of Java OOPS concepts. Java also follows all object oriented technologies like object oriented principles. Let's try to know about these principles.
Encapsulation
Encapsulation is also called data hiding. In Encapsulation, you declare private variables and they access through public methods, your variables can access methods of your own class. No other class can access your variables. Thus, you also hide data and also use it.
Another means of encapsulation is to bind the data and code into one unit and prevent access from the outside. your such variables and methods are binded in the same unit. Java provides 3 levels of data hiding.
- public - Your public class members can access other classes.
- private - Your private class members can not access any other class.
- protected - Only class to inherit your class can access your class members.
Inheritance
Through this principle, you can access the variables of a class in the second class. Doing so does not require you to write the same methods repeatedly. This eliminates computer's memory and programmer's time both. Multiple inheritance is not allowed in Java. A class can inherit only one class. This reduces through java interfaces.
Polymorphism
Polymorphism is the word taken from the Greek language in which poly means many and morphism means forms. Through polymorphism you can take one according to the different actions according to the situation from an interface. It is a concept in which we can do the same work in two different ways.
- Compile-time polymorphism(static polymorphism)
- Run-time polymorphism(Dynamic polymorphism)
Abstraction
Abstraction is a very important concept of java. In which the concept of abstraction, You do not show your software's internal working user. Just provide the interface to the user so that they will interact.
Learn more about android, Java and many programming languages then join android training in Chandigarh from Cbitss technologies Sector 34A
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.