logo

OO Basics and Smalltalk: A Beginner's Guide to Object Oriented Programming

5 Pages702 Words168 Views
   

Added on  2022-10-10

About This Document

This article provides a beginner's guide to Object Oriented Programming with Smalltalk. It explains the concepts of class, object, encapsulation, information hiding, inheritance, polymorphism, and more. It also includes an assignment to implement Fizz Buzz in Smalltalk and compare it with Fortran and Algol in terms of readability and writability.

OO Basics and Smalltalk: A Beginner's Guide to Object Oriented Programming

   Added on 2022-10-10

ShareRelated Documents
Programming
PROGRAMMING
Name of the Student
Name of the University
Author Note
OO Basics and Smalltalk: A Beginner's Guide to Object Oriented Programming_1
Programming
OO Basics and Smalltalk:
What is a class, and what does it define?
In object oriented programing language, Class can describe the objects. Class is a template of an
object. One class can create multiple objects, but an object can be created from a single class.
What is the difference between a class and an object? What does an object encapsulate?
Class is a template or plan of an object, but the object is an instance of a class. An example of a
real-life entity is an object, but the class created by a group of objects. An object is a physical type of
entity, but class is a logical type of entity. An object can be created many times. But can class can be
created only one time.
Encapsulation is one of the main pillars of object oriented programing language. Encapsulation
can hide the data. Another name of encapsulation is information hiding.
What is information hiding? Provide an example. Do objects have the property of information
hiding?
Information hiding is a special type of process of hiding the object details or method details.
The process of hiding details called abstraction. This process can reduce the complexity of a program.
The information hiding process helps developers to prevent change the unwanted changes. Sometimes
developers use this process to prevent the data exposed.
A real-life example of the data hiding process is Car. Car is a perfect example where developers and
engineers hide the data from the user.
Yes, an object can have the property of information hiding.
OO Basics and Smalltalk: A Beginner's Guide to Object Oriented Programming_2

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Object Oriented Programming: Inheritance, Encapsulation, Polymorphism
|11
|1451
|340

ICTPRG527 Apply Intermediate Object-Oriented Language Skills
|8
|1494
|69

Object Oriented Programming Concepts - Assignment
|31
|1680
|187

Unit 20 Advanced Programming - Assignment
|31
|3536
|337

Concept of Data Encapsulation
|10
|2878
|302

Assignment On Object Oriented Programming With Java
|4
|570
|40