Ask Question
29 July, 17:19

What is an abstract data type?

+3
Answers (1)
  1. 29 July, 18:22
    0
    Abstract data type is a datatype which hides all the implementation details to the end user.

    Explanation:

    Class is an abstract data type in object oriented programming. Class abstracts both data members and member functions implementation. Here we can hide some confidential data from end user using access specifier "private". We can make end user access only the data which is marked as "public".

    example:

    public class Calculate

    {

    private int salary;

    public int workingHours;

    public int reatePerHour;

    public void Calcuate () {

    int total=workingHours*reatePerHour;

    cout<
    }

    }

    Here class calculates hides the implementation details of the method "Calculate". We are abstracting implementation details to the end user using "Class" data type. So it is an AbstarctDataType
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is an abstract data type? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers