TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Sunday 28 June 2020

Abstract Data Type In C++| Abstract Data Type In C++ Program | Abstract Data Type In C++ Example| Abstract Data Type In C++ In Hindi

Abstract Data Type In C++


Abstract Data type (ADT) is a type (or class) for objects whose behaviour is defined by a set of value and a set of operations.

The definition of ADT only mentions what operations are to be performed but not how these operations will be implemented. It does not specify how data will be organized in memory and what algorithms will be used for implementing the operations. It is called “abstract” because it gives an implementation-independent view.

image of Abstract Data Type In C++
Fig: Abstract Data Type In C++


Program:

#include<iostream.h>

#include<conio.h>

struct emp

{

char name[10];

int age;

};

void main()

{

struct emp e;

cout<<”enter employee name \n”;

cin>>e.name;

cout<<”enter age\n”;

cin>>e.age;

cout<<”name is”<< “    “<<e.name;

cout<<”age is “<<”  ”<<e.age;

getch();

}


Output:

Enter name Pramod

Enter age 21

Name is Pramod

Age is 21


No comments:

Post a Comment