Write a program in c++ that has a class containing constructors and in the class create 5 functions two functions should be get data and print data functions while rest of the 3 could be of programmers choice depending on the type of class is being created
Write a program in c++ that has a class containing constructors and in the class create 5 functions two functions should be get data and print data functions while rest of the 3 could be of programmers choice depending on the type of class is being created
*c++ coding
*create a class(any class of choice such as book car animal etc)
*the class should contain constructors
*In class create get data and print data functions for storing and printing data
*Then create / include three (3) more functions of any type (other than get data and print data)
*In total there will be 5 functions in class
. get data
. Print data
. And three 3 more of programmers choice depending on whatever the class requires
* keep the program simple and basic as possible for a beginner level student in c ++
Step by step
Solved in 3 steps with 1 images