Discussion
A/An ______ is a user-defined datatype which has data members and member functions.
Answer: A
A class is a user-defined data type that holds data members and member functions. An object is an instance of a class, created from it, not the type itself. A package is a way of grouping related classes in languages such as Java, and a method is a single function inside a class. Only the class fits the definition. In Java and C++ the keyword class is used to define such a type, and objects are then created from it.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development