Presentations | English
Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism in programming. The main aim of object oriented programming is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function. The building block of C++ that leads to object-oriented programming is a class. It is a user-defined data type which holds its own data members and member functions, which can be accessed and used by creating an instance of that class. A class is like a blueprint for an object. It can be said that a class in C++ is a blue-print representing a group of objects which shares some common properties and behaviours. An object is an identifiable entity with some characteristics and behaviour. It is an instance of a class. When a class is defined, no memory is allocated but when object is instantiated, memory is allocated. When a program is executed the objects interact by sending messages to one another. Each object contains data and code to manipulate the data. Objects can interact without having to know details of each other’s data or code.
37.50
Lumens
PPTX (150 Slides)
Presentations | English