OOPS

1. Rectangle Class

Design a class Rectangle
Data Members:

  • length
  • breadth

Member Functions:

  • setDimension()
  • area()
  • perimeter()

2. Worker Class

Design a class Worker
Data Members:

  • wages
  • working_days

Member Functions:

  • setData()
  • payment()

3. Box Class

Design a class Box
Data Members:

  • length
  • breadth
  • height

Member Functions:

  • setDimension()
  • volume()

4. Student Class

Design a class Student
Data Members:

  • roll_number
  • name

Member Functions:

  • setData()
  • getData()

5. Account Class

Design a class Account
Data Members:

  • balance

Member Functions:

  • deposit(amount)
  • withdraw(amount)
  • showBalance()

6. Set Class

Design a class Set that stores three numbers
Member Functions:

  • SUM()
  • MEAN()
  • MAX()
  • MIN()

7. Rectangle Class (Method Overloading – Java / C++)

Design a class Rectangle
Data Members:

  • length
  • breadth

Member Functions:

  • setDimension(int side)
  • setDimension(int length, int breadth)
  • area()
  • perimeter()

8. Box Class (Constructors – Java / C++)

Design a class Box
Data Members:

  • length
  • breadth
  • height

Constructors:

  • Box(int side)
  • Box(int length, int breadth)
  • Box(int length, int breadth, int height)

Member Function:

  • volume()

9. Account Class (Static Data Member)

Design a class Account
Data Members:

  • balance
  • interest_rate (static, default value = 10.25)

Member Function:

  • interest(no_of_years)

10. Student Class (Auto Roll Number)

Design a class Student
Data Members:

  • roll_number (auto-generated)
  • name

Member Functions:

  • getData()

Additional Requirement:

  • Keep track of the total number of students using a static variable.

11. Student Objects Using Array

Design a class Student
Data Members:

  • roll_number
  • name

Member Functions:

  • getData()
  • showData()

Task:

  • Create an array of 5 Student objects and display their details.

12. Student Class with College

Create an array of Student objects
Data Members:

  • roll_no
  • name
  • college

Member Functions:

  • readData()
  • showData()

13. Student & ClassRoom

Design:

  • Student class
  • ClassRoom class

Task:

  • Add a list of students to ClassRoom
  • Display the student list

14. Account & Bank

Design:

  • Account class
  • Bank class

Task:

  • Add a list of accounts to Bank
  • Display account details

15. Java Packages

Create two packages:

  • MyCircle
  • MyRectangle

Data Members:

  • radius (Circle)
  • length, breadth (Rectangle)

Member Functions:

  • area()
  • circumference()
  • perimeter()

16. RBI Class (Java Only)

Design a class RBI
Data Member:

  • balance

Member Functions:

  • RBI() (constructor)
  • deposit(int amount)
  • withdraw(int amount)
  • showBalance()

1,388 Replies to “OOPS”

  1. the best adult generator pornjourney.app create erotic videos, images, and virtual characters. flexible settings, high quality, instant results, and easy operation right in your browser. the best features for porn generation.

  2. Hello lads!
    I came across a 153 helpful page that I think you should browse.
    This resource is packed with a lot of useful information that you might find valuable.
    It has everything you could possibly need, so be sure to give it a visit!
    https://www.six9ja.com/all-you-need-to-know-about-psychology/

    And don’t neglect, folks, — a person at all times can within this piece find answers to the most complicated questions. Our team tried to explain all of the content in an most understandable method.

  3. Hello .!
    I came across a 153 very cool site that I think you should check out.
    This site is packed with a lot of useful information that you might find helpful.
    It has everything you could possibly need, so be sure to give it a visit!
    https://writeminer.com/a-comprehensive-guide-about-best-free-online-gaming-for-pc/

    Furthermore don’t overlook, everyone, that you at all times may in the piece find answers to the most confusing queries. The authors made an effort to present the complete information in an very accessible manner.

  4. Нужен проектор? интернет-магазин проекторов большой выбор моделей для дома, офиса и бизнеса. Проекторы для кино, презентаций и обучения, официальная гарантия, консультации специалистов, гарантия качества и удобные условия покупки.

  5. Hello friends!
    I came across a 153 useful tool that I think you should browse.
    This resource is packed with a lot of useful information that you might find helpful.
    It has everything you could possibly need, so be sure to give it a visit!
    https://betterthisworld.com/health/how-to-stay-on-top-of-your-mental-health/

    Additionally do not neglect, everyone, which you at all times may within the article find answers to address the most the absolute confusing queries. Our team tried — explain the complete information via the most extremely easy-to-grasp way.

  6. Hello team!
    I came across a 153 fantastic resource that I think you should take a look at.
    This resource is packed with a lot of useful information that you might find valuable.
    It has everything you could possibly need, so be sure to give it a visit!
    https://huffingtonmedia.com/best-way-to-work-online-from-anywhere/

    Additionally don’t overlook, guys, that you constantly can in this particular publication discover answers to address the most most complicated inquiries. The authors made an effort to present all of the information using the most understandable manner.

  7. Лучшее казино ап х играйте в слоты и live-казино без лишних сложностей. Простой вход, удобный интерфейс, стабильная платформа и широкий выбор игр для отдыха и развлечения.

  8. Just wish to say your article is as amazing. The clarity on your post is just spectacular and that i can suppose you are knowledgeable on this subject. Fine with your permission allow me to clutch your feed to keep up to date with coming near near post. Thank you one million and please carry on the rewarding work.
    byueuropaviagraonline

  9. Thank you for another magnificent article. The place else may anyone get that kind of information in such an ideal means of writing? I’ve a presentation next week, and I am at the look for such information.
    вход leebet

  10. Приветствую! Сегодня затронем тему — гидроизоляция ангара. Дело в том, что: логистические комплексы — требуют особого подхода. Нужны профессионалы — вот проверенные: монтаж мембранной кровли. Лично я убедился, что для складов — полимеры идеальны. Допустим крыша 5000 квадратов — вот, дальше мембрану укладывают механическим способом. Сейчас это самый передовой — армированные ПВХ мембраны. Что в итоге: это работает — товар в сухости.

  11. Hello this is kinda of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding expertise so I wanted to get guidance from someone with experience. Any help would be greatly appreciated!
    А7 А5

  12. May I simply say what a relief to discover a person that actually knows what they’re talking about on the internet. You actually understand how to bring an issue to light and make it important. A lot more people need to check this out and understand this side of the story. It’s surprising you aren’t more popular because you most certainly possess the gift.
    А7 А5

  13. An impressive share! I’ve just forwarded this onto a colleague who has been conducting a little homework on this. And he in fact bought me breakfast due to the fact that I stumbled upon it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanx for spending some time to discuss this issue here on your blog.
    А7 А5

  14. I blog often and I seriously appreciate your content. Your article has really peaked my interest. I am going to book mark your site and keep checking for new details about once per week. I subscribed to your Feed as well.
    А7 А5

  15. Hi, this weekend is pleasant in favor of me, because this moment i am reading this fantastic informative post here at my house.
    А7 А5

  16. Thank you for another excellent article. The place else could anybody get that type of information in such an ideal manner of writing? I’ve a presentation subsequent week, and I am on the look for such information.
    А7 А5

  17. Attractive part of content. I simply stumbled upon your website and in accession capital to say that I acquire in fact loved account your blog posts. Any way I’ll be subscribing to your feeds or even I fulfillment you get entry to consistently fast.
    Илан Шор А7

  18. Admiring the time and energy you put into your website and detailed information you offer. It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed information. Excellent read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.
    Илан Миронович Шор

Leave a Reply to Charlesslume Cancel reply

Your email address will not be published.