A class is a template. An object is an instance of class. Every data member of an object contains its own value, where as class only declares the data members. Enumeration is a great user defined user type in c#.net and vb.net.
A class is a template. An object is an instance of class. Every data member of an object contains its own value, where as class only declares the data members. Enumeration is a great user defined user type in c#.net and vb.net.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
A class is a template. An object is an instance of class. Every data member of an object contains its own value, where as class only declares the data members. Enumeration is a great user defined user type in c#.net and vb.net.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
1.What is the difference between an object and a class?
A: A Class is a template. An object is an instance of class. Every data member of an
object contains its own value, where as Class only declares the data members. 2. What is the difference between class and structure? A: In class all the members are private bydefault where as the in structure all the members are public. 3. What do you meant by static and dynamic modeling? A: Static modeling is used to specify structure of the objects that exist in the problem domain. These are expressed using class, object and USECASE diagrams. But Dynamic modeling refers representing the object interactions during runtime. It is represented by sequence, activity, collaboration and statechart diagrams. 4. What is Difference between c and c++? A: C is a structured programming language where as C++ is an object oriented language. C++ is also called as C with Classes. 5. What is prototype in c++ and c? A: Function declaration is called as the prototype in both c and c++ 6. What are the different types of Storage classes? A: auto - > normal datatypes Extern - > For accessing variables which is not in current file Static -> Allocated single memory for all objects Register -> Faster access of variables,since it will be stored in registers. 7. What is encapsulation? A: Encapsulation is wrapping up of data and member functions which becomes a class. 8. What is the definition of abstract class and virtual function? A: virtual functions: A virtual function is a member function that is declared within a base class and redefined by a derived class. Abstract Class: A class that contains at least one pure virtual function is said to be abstract. 9.why c++ is called as object-oriented language? Here what does object mean? A: bcz in c++ first we think abt d object and v create d object,aftr dat we make d procedure for work on d object.here object means wat is our first step which we have 2 concentrate more n aftr dat we work on dis step. 10. What is an enumerator? A: enumeration is a great user defined user type in C#.net and vb.net. It is very useful in code readability. 11. What is a class? A: Class is a user-defined data type in C++. It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class. 12. What is abstraction? A: Abstraction is of the process of hiding unwanted details from the user. 13. Define encapsulation? A: Encapsulation literally means to enclose in or as if in a capsule. Encapsulation is defined as the process of enclosing one or more items within a physical or logical package. It involves preventing access to nonessential details.