Object-Oriented programming (OOP) is a programming paradigm based on the concept of objects, which are instances of classes that encapsulate data and behavior. OOP provides a number of features that make it a popular choice for developing large, complex software systems. Here are some of the key features of OOP:Encapsulation: OOP allows you to encapsulate the implementation details of an object and hide them from the outside world. This helps to ensure...
Showing posts with label a program to add two objects of a class using friend function. The class consists of hour and minute as its data member. Show all posts
Showing posts with label a program to add two objects of a class using friend function. The class consists of hour and minute as its data member. Show all posts
Thursday, February 16, 2023
Explain features of OOP. Write a program to add two objects of a class using friend function. The class consists of hour and minute as its data member, input(), sum() and output() as its member functions.
Niraj shrestha
February 16, 2023
0