1. A class is a template that defines the properties and behaviors of an object, while an object is an instance of a class with its own values for properties.
2. In a class, all members are private by default, while in a structure all members are public.
3. Static modeling specifies the structure of objects using diagrams like class and object diagrams, while dynamic modeling represents object interactions at runtime using diagrams like sequence and statechart diagrams.
1. A class is a template that defines the properties and behaviors of an object, while an object is an instance of a class with its own values for properties.
2. In a class, all members are private by default, while in a structure all members are public.
3. Static modeling specifies the structure of objects using diagrams like class and object diagrams, while dynamic modeling represents object interactions at runtime using diagrams like sequence and statechart diagrams.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
1. A class is a template that defines the properties and behaviors of an object, while an object is an instance of a class with its own values for properties.
2. In a class, all members are private by default, while in a structure all members are public.
3. Static modeling specifies the structure of objects using diagrams like class and object diagrams, while dynamic modeling represents object interactions at runtime using diagrams like sequence and statechart diagrams.
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.
Learn Python Programming for Beginners: Best Step-by-Step Guide for Coding with Python, Great for Kids and Adults. Includes Practical Exercises on Data Analysis, Machine Learning and More.
Microsoft 365 Guide to Success: 10 Books in 1 | Kick-start Your Career Learning the Key Information to Master Your Microsoft Office Files to Optimize Your Tasks & Surprise Your Colleagues | Access, Excel, OneDrive, Outlook, PowerPoint, Word, Teams, etc.
Microsoft PowerPoint Guide for Success: Learn in a Guided Way to Create, Edit & Format Your Presentations Documents to Visual Explain Your Projects & Surprise Your Bosses And Colleagues | Big Four Consulting Firms Method
Microsoft Excel Guide for Success: Transform Your Work with Microsoft Excel, Unleash Formulas, Functions, and Charts to Optimize Tasks and Surpass Expectations [II EDITION]
The Advanced Roblox Coding Book: An Unofficial Guide, Updated Edition: Learn How to Script Games, Code Objects and Settings, and Create Your Own World!
Modern Tkinter for Busy Python Developers: Quickly Learn to Create Great Looking User Interfaces for Windows, Mac and Linux Using Python's Standard GUI Toolkit