what is Class in oops with example?

Answer Posted / venkatesh

Class is a user defined datatype, and it is a logical representation of data(means which does not occupy any space)

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How Do you Code Composition and Aggregation in C++ ?

24679


Which method cannot be overridden?

753


what type of questions

1879


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1975


Explain virtual inheritance?

883


What is the significance of classes in oop?

787


What is class and object in oops?

813


Can static class have constructor?

778


What is an interface in oop?

768


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1602


What is the difference between encapsulation and polymorphism?

812


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2255


Why it is called runtime polymorphism?

774


• What are the desirable attributes for memory managment?

1934


What are the three main types of variables?

815