Tuesday, March 31, 2020
Basic concept of object oriented programming c++
1.object
2.class
3.data abstraction
4.data encapulation
5.inherentance
6.polymorphisims
7.dynamic binding
8.message passing
1.object :-
object are basic run time antities. eg- a table a person ,a place ,a bankaccount .
The object required a memory space to store in memory because object space contain data one object...
Arithmetic operation for given number
Q. write a python program arithmetics operation for the given number.
consider the two number num1=20 num2=10
Ans:
num1=20
num2=10
num3=num1+num2
print("The addition of two number is=",num3)
num4=num1-num2
print("The substraction of two number is",num4)
num5=num1*num2
print("The multiplication of two number is",num5)
num6=num1/num2
print("The...
Addition of two number using python
Q. program to write the addition of two number using python programming
The given number is num1=10 & num2=20.
Ans:
num1=10 #first given number
num2=20 #second given number
num3=num1+num2
print("The addition of two number is=",num3)
output:
The addition of two number is=30...
Feature of object oriented programming (C++)
1.The program divided into object.
2.Object oriented follows bottom of opproch.
3.In object oriented programming data is hidden cannot access outside function.
4.New data function can be easily added in object oriented programming.
5.function and data are tight together single unit called object.
introduction of c...
Introduction in c++
1.c++ is a object oriented programming language.
2.The need of invention of oriented programming language is to remove some of drawbacks form proceture oriented programming language .
3.In object oriented programming language more security is given by Data.
4.Data is accessible only the function which are tight to the particular object.
feature of...
Sunday, March 8, 2020
program to addition of two number using c
#include<stdio.h>
void main()
{
int num1,num2,num3;
printf("Enter the first number");
scanf("%d",&num1);
printf("Enter the second number");
...
hello world program in java
class A {
public static void main(String args[]){
System.out.println("Hello World");
}
...
addition of two number using python
Q.write a program to addition of two number using python .
Take a user define two user define value
Ans
num1=input("Enter the First number")
num2=input("Enter the second number")
num3=num1+num2
print("The addition of two number is =",num3)
output:-
Enter the First number=10
Enter the Second number=20
The addition of two number is=30
addition...
hello world in python
Q.write a program to display the "Hello world " .
Ans:
print("Hello world")
output:-
Hello world
addition of two number using python inbulid value
addition of two number using python user define value
Arithmetics operation using python&nbs...