Computer Science, asked by kkrishnaraj049, 2 months ago

What is a class?. How will you create object and access the class members?.

Give example​

Answers

Answered by anjanabhardwaj2007
1

Explanation:

Accessing data members and member functions: The data members and member functions of class can be accessed using the dot('. ') operator with the object. For example if the name of object is obj and you want to access the member function with the name printName() then you will have to write obj. printName()

Similar questions