C++ Classes and Objects

4.4
estrelas
9 classificações
oferecido por
Coursera Project Network
Neste projeto guiado, você irá:

Define instance variables and create a static C++ variable.

Use Encapsulation in C++ by providing private instance variables and public getters and setters.

Define Constructors with various parameters and create object instances.

Clock2 hours
IntermediateIntermediário
CloudSem necessidade de download
VideoVídeo em tela dividida
Comment DotsInglês
LaptopApenas em desktop

In this project you will create an application that defines a Car class and create one to many Car objects using C++. Object Oriented programming is advantageous because it allows the programmer to think in terms of the way people think of the real world, in terms of Objects like employees, airplanes, and homes for example. In procedural programming, the programmer tends to think more in terms of procedures or functions. In Object-Oriented Programming in a language such as C++, Classes and Objects are often used interchangeably but there is a distinction between the two. A class is a blueprint for objects. An automobile may come in many different makes, colors, and models, but each car object has those same attributes. A Car class then contains the common attributes all cars have; color, make and model. When an Object of a Car is made from the Car class, it is then assigned a specific color, such as a red Nissan Sentra or a blue Toyota Camry. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Habilidades que você desenvolverá

C++ PrototypeC++ Class DesignC++ String ConcatenationObject-Oriented Programming (OOP)C++

Aprender passo a passo

Em um vídeo reproduzido em uma tela dividida com a área de trabalho, seu instrutor o orientará sobre esses passos:

  1. Create the C++ Class, identify attributes, and instantiate a Car object.

  2. Define instance variables and create a static C++ variable.

  3. Use Encapsulation in C++ by providing private instance variables and public getters and setters.

  4. Define Constructors with various parameters and create object instances of the C++ Class.

  5. Write a method to create a String representation of the C++ Object.

Como funcionam os projetos guiados

Sua área de trabalho é um espaço em nuvem, acessado diretamente do navegador, sem necessidade de nenhum download

Em um vídeo de tela dividida, seu instrutor te orientará passo a passo

Avaliações

Principais avaliações do C++ CLASSES AND OBJECTS

Visualizar todas as avaliações

Perguntas Frequentes – FAQ

Perguntas Frequentes – FAQ

Mais dúvidas? Visite o Central de Ajuda ao Aprendiz.