How to use single inheritance in java In this article we learn single inhetitance by using “has a relationship” ang “is a relationship”. Now, first of all we write the program by using “has a relationship ” in Single Inheritance…. Continue Reading →
declare @i int=10 while(@i<=20) begin print @i set @i=@i+1 end I hope this code is helpful. Happy coding 🙂
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).
In this blog i am going to write a function which returns word count in sql server. Sql server does not provide inbuilt function for calculating word count. So we have to write a custom function in sql. CREATE FUNCTION… Continue Reading →
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.