In this program we will know the operations of String in java,So lets make a program to show the operations of String.
In this article, we will learn to how create a program of table of any number in C. Let’s write a program of table of any number in C. Step 1: Let’s open turbo C/C++ and write the following code…. Continue Reading →
Program to find prime number in C. Prime number : A prime number is a number whose only factors are 1 and itself. That means there is no whole number that evenly divides the prime number. Let’s write a program… Continue Reading →
Overriding: Overriding function having same name as well as same parameters replace the base class to the derived class(inherited class).
This program ask to the user to enter two numbers (value of First and Second ) to interchange and display the result on the screen
Encapsulation: Encapsulation is process of wrapping of data and method in single unit.
Encapsulation provides abstraction between an object and its clients. It helps to protect an object from unwanted access by clients.
Encapsulation is a powerful feature that leads to information hiding,abstract data type and friend function.
Overloading: There are many simple definition of Overloading like:
1: In overloding function with same name having different parameters.
2: Function overloading may have different return types.
Virtual function: Virtual functions, one of advanced features of Oop is one that does not really exist but it appears real in some parts of a program.
To make a member function virtual, the keyword virtual is used in the methods while it is declared in the class definition but not in the member function definition.
Factorial: Factorial are just products,indicated by an exclamation mark. In general “n!” means the product of all the whole numbers from 1 to n; i.e n!= 1x2x3x4x……x n.
This program add up to n numbers which will be provided by user. Firstly user will enter a fix number to indicate how many numbers he wants to add and then he will enter n numbers.