by Yogesh | Sep 17, 2016 | Java tutorials
Use of private member variable of super class in subclass What you will learn? How to access private member variable of parent class into child class. Hiding super class variable. Some Important factors An inherited member is that member of base class that is freely...
by Yogesh | Sep 16, 2016 | Java tutorials
Object Oriented Programming in JAVA – Inheritance What is Inheritance? The main purpose of the inheritance is code extensibility whenever we are extending automatically the code is reused. In inheritance one class giving the properties and behavior and another...
by Yogesh | Sep 15, 2016 | Java tutorials
Constructor Calling in Constructor function in JAVA Basic Idea of Constructor Constructor in java is a special type of method that is used to initialize the object. Java constructor is invoked at the time of object creation. Ex Test tobj=new Test(); Rules of Java...
by Yogesh | Sep 5, 2016 | Java tutorials
Classes and Objects Class Definition A class is prescription for a particular kind of object. Objects can be created using the class.Object can access all the member variables and methods(Depends on the acess modifiers) A class have two things- 1.Fields :-...
by Yogesh | Aug 13, 2016 | Java tutorials
What is Array Array is collection of similar primitive data types, object reference or collection of other array. All java array are treated as objects. We can construct java array using new keyword. All java array elements are initialized by their data type ‘s...
by Yogesh | Aug 9, 2016 | Java tutorials
if you declare any variable as static, it is known static variable. The static variable can be used to refer the common property of all objects (that is not unique for each object) e.g. company name of employees,college name of students etc. The static variable gets...