What is a class?

Answer Posted / preethi

In object-oriented programming , a class is a template
definition of the method s and variable s in a particular
kind of object . Thus, an object is a specific instance of
a classClass is the Collection of Methods and Datafield, in
other
word we can say class is user defined Data Types
; it contains real values instead of variables

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain polymorphism?

571


What is encapsulation in ict?

593


What is a class in oop?

591


What is destructor in oop?

615


What is overriding vs overloading?

571






Where You Can Use Interface in your Project

1415


write a C++ program for booking using constructor and destructor.

2038


What is the real time example of encapsulation?

582


Write a program to sort the number with different sorts in one program ??

1905


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

685


How do you explain polymorphism?

580


Can we have inheritance without polymorphism?

600


What is encapsulation c#?

592


What is class in oop with example?

608


What are constructors in oop?

581