YoVDO

Java Classes and Objects

Offered By: Coursera Project Network via Coursera

Tags

Java Courses Object-oriented programming Courses

Course Description

Overview

In Object-Oriented Programming in a language such as Java, Classes and Objects are often used interchangeably but there is a distinction between the two. A class is a blueprint for objects. In this project you will create an application that defines a Car class and create one to many Car objects. A Car class contains the common attributes all cars have; color, make and model. When a Car Object 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.

Syllabus

  • Java Classes and Objects
    • 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 Java, Classes and Objects are often used interchangeably but there is a distinction between the two. A class is a blueprint for objects. There often is a direct correlation between objects in the real world and objects in the programming realm. A Car Dealership may need to track many different cars that arrive and are sold from a lot. An inventory program may be used to represent each actual car as an object in the program. 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. Many Car objects can be made from that one Car class definition, or blueprint. One could then create an inventory application for the Car dealership with all of the colors, makes and models of cars in the dealership.In this project you will create an application that defines a Car class and create one to many Car objects.

Taught by

David Dalsveen

Related Courses

Introduction à la programmation orientée objet (en Java)
École Polytechnique Fédérale de Lausanne via Coursera
C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera
Introduction to Programming for Musicians and Digital Artists
California Institute of the Arts via Coursera
Beginning Game Programming with C#
University of Colorado System via Coursera
Paradigms of Computer Programming
Université catholique de Louvain via edX