Question: Object Oriented Programming C++2 - Lab Lab #2: Introduction to Classes and Objects Objectives: The laboratory exercises basic C++ programming skills. The laboratory guides the

 Object Oriented Programming C++2 - Lab Lab #2: Introduction to Classes

Object Oriented Programming C++2 - Lab Lab #2: Introduction to Classes and Objects Objectives: The laboratory exercises basic C++ programming skills. The laboratory guides the students through the creation of a win32 console application project with C++ source file that uses Visual Studio Environment. The laboratory explores the fundamental concepts of a class such as public, private members, and constructors. Student Learning Outcomes: You will: Be able to select appropriate C++ programming language commands and constructs to write the code. Be able to develop executable computer programs using class. These outcomes will be achieved by means of lecture notes, learn-by- doing style in-class programming exercises. Background: Students have knowledge about the basic concept of class and object [data members, member function, and constructors]. LIST OF Exercises:- Exercise #1: Create an empty project to write a simple program to print your name. Exercise #2: Write a class implementation named (Display1) with: A single public member function named Print to print your name then use it. Exercise #3: Write a class implementation named (Display2) with: A single public member function named Print with one parameter to print any given string then use it. Exercise #4: Write a class implementation named (Display3) with: 1. A private data member NAME of type string. 2. A public member function to set the value for NAME. 3. A public member function to get the value for NAME. 4. A public member function named Print to print the value of data member NAME

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sure lets go through each exercise step by step Exercise 1 Objective Create an empty project and wri... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!