programming like c, c++, java,python learn in free

  • This is default featured slide 1 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

  • This is default featured slide 2 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

  • This is default featured slide 3 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

  • This is default featured slide 4 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

  • This is default featured slide 5 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

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 required a memory space to store in memory because object contain data one object may commiuncate another object by sending or receiving message to one another.
eg- bankaccounter 
we can say that real life entity in real world.

2.class:-
 we just mainstion that object contain data and code two manupalate that data.
The entire set of data and code of an object can be made a user define datatype with the help of class infact object are variable of type class.
one a class has define we can create any number of object belonging to the class 
eg- mango,apple,orange are member of class fruit.
classes are user define datatype and behave like building datatype.

3.data abstraction :- 
data abstraction refer to act of represeentating the ensical feature without including background detals. on explaning classes use the concept of abstraction 
eg- following are different list of abstract attibutes, size ,weight , cost etc
and function operates on this attributes called as data member and function called as member function 

4. data encapulation :- 
rapping of  the data and function into a single units is  called data encapulation .
eg - CPU
dataencapulation is most striking feature of the class.
The data is not accientable to the outside world .
The data is acciable to only function which are rapped in the class .

5.inheritance :-
inheritance is the process by which object of one class aqurired the properties of object of another class . 
inheritance is the hirachical classfication 
i)single inheritance 
ii)multiple inheritance
iii)haricical inheritance 
iv)multilevel inheritance
v)hybrid inheritance
Share:

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 division of two number is",num6) 

Output
 The addition of two number is=30

 The substraction of two number is=10

 The multiplication of two number is=200

 The division of two number is=2


Share:

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
Share:

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++
Share:

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 object oriented programming c++ 
Share:

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");
         scanf("%d",&num2);
         num3=num1+num2;
         printf("The addition of two number is =%d",num3);
}

Share:

hello world program in java

class A {
 public static void main(String args[]){
     System.out.println("Hello World");
 }
}
Share:

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 of two number using python inbuild value
Share:

hello world using c++

#include<iostream.h>
void main()
{
          cout<<"hello world";
}
output:-
hello world
Share:

hello world using c

#include<stdio.h>
void main()
{
          printf("Hello world");
}
output:-
Hello world

Share:

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 
Share:

Unordered List

recentposts1
Powered by Blogger.

Text Widget

Featured Post

C programming Question and Answer Day-15

71. Program to check Niven number (Harshad number). #include<stdio.h> #include<conio.h> void main() {     int n, d, a, su...

Search This Blog

recent comments

recentcomments

Labels

[slideshow][technology]

vertical posts

[verticalposts][technology]

business

[business][grids]

ad space

ads 600

vehicles

[cars][stack]
[verticalposts][food]

our facebook page

about us

logo

Jupiter is a magazine responsive Blogger template. It has everything you need to make your blog stand out. This template is fully customizable and very flexible and we believe you will love it as much as we do.

Slide show

[people][slideshow]

health

[health][btop]

recent posts

recentposts1

Subscribe Us

random posts

randomposts2

Blog Archive

Recent Posts

top ads

Unordered List

recent

Pages

Theme Support

[socialcounter] [facebook][#][215K] [twitter][#][115K] [youtube][#][215,635] [rss][#][23M] [linkedin][#][21.5K] [instagram][#][600,300]