Archive for what is method overlaoding
You are browsing the archives of what is method overlaoding.
You are browsing the archives of what is method overlaoding.
There are four main pillars of an Object Oriented Programming Language :
• Inheritance:
Inheritance provide the facility to drive one class by another using simple syntax. You can say that it is a process of creating new class and use the behavior of the existing class by extending them for reuse the existing code and adding the [...]
1) What are the programming constructs?
Ans: a) Sequential
b) Selection — if and switch statements
c) Iteration — for loop, while loop and do-while loop
2) class conditional {
public static void main(String args[]) {
int i = 20;
int j = 55;
int z = 0;
z = i < j ? i : j; // ternary operator
System.out.println(”The value assigned is ” [...]