How do you define a class in oop?



How do you define a class in oop?..

Answer / Mohd Zaheer

"A class is defined by using the keyword 'class' followed by the class name and its enclosed within curly braces. For example: class MyClass { ... }."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is polymorphism give a real life example?

1 Answers  


how to find no of instances of an object in .NET?

1 Answers   Infosys,


why destructor is not over loaded?

5 Answers  


Why oops is important?

1 Answers  


What is and I oop mean?

1 Answers  


write a function that takes an integer array as an input and finds the largest number in the array. You can not sort array or use any API or searching needs?

2 Answers   IBMS, Zycus Infotech,


what is data hiding.

3 Answers   Wipro,


Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?

5 Answers  


design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }

0 Answers  


What are the 3 pillars of oop?

1 Answers  


How do you define social class?

1 Answers  


what is oops

4 Answers   NIIT,


Categories